aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/analyzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyzer.c b/src/analyzer.c
index fa26df3..0611121 100644
--- a/src/analyzer.c
+++ b/src/analyzer.c
@@ -423,7 +423,7 @@ constfoldexpr(struct cfctx ctx, mpq_t *folds, scope_t *scps, type_t *types,
idx_t expr = ast.kids[sym->i].rhs;
assert(expr != AST_EMPTY);
MPQCPY(folds[i], folds[expr]);
- if (MPQ_IS_INIT(folds[i])) {
+ if (!MPQ_IS_INIT(folds[i])) {
ctx.si = lvl;
(void)constfolddecl(ctx, folds, scps, types,
ast, toks, sym->i);