From 55d02ca9d6e524a452b0d734e4e48de197dcaa2b Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Wed, 27 Sep 2023 06:18:42 -0300 Subject: [PATCH] Add additional sanity check --- expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expr.c b/expr.c index ae8e90416..db5136cfc 100644 --- a/expr.c +++ b/expr.c @@ -1906,7 +1906,7 @@ EvalExpr(AST *expr, unsigned flags, int *valid, int depth) { return intExpr(str[rval.val]); } - } else if (expr->left && IsIdentifier(expr->left) && IsConstExpr(expr->right)) { + } else if (expr->left && IsIdentifier(expr->left) && IsConstExpr(expr->right) && (flags & PASM_FLAG)) { ExprVal lval; lval = EvalExpr(expr->left, flags, valid, depth+1); if (IsIntType(lval.type)) {