From 4668e392a0233092658a6650f7d9f946d38c81ac Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Sat, 13 Jan 2024 10:07:55 -0800 Subject: [PATCH] comp op return val --- templates/ExprEval.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/ExprEval.cpp b/templates/ExprEval.cpp index 6ec7e119..8eeb248e 100644 --- a/templates/ExprEval.cpp +++ b/templates/ExprEval.cpp @@ -1698,10 +1698,10 @@ expr *ExprEval::reduceCompOp(operation *op, bool &invalidValue, const any *inst, invalidValue = true; } else { constant *c = s.MakeConstant(); - c->VpiValue("UINT:" + std::to_string(val)); + c->VpiValue("BIN:" + std::to_string(val)); c->VpiDecompile(std::to_string(val)); - c->VpiSize(64); - c->VpiConstType(vpiUIntConst); + c->VpiSize(1); + c->VpiConstType(vpiBinaryConst); result = c; } return result;