From d8b8faae2ff8381f75db3e7201014a01f632fbec Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 23 Jun 2024 23:07:00 +0200 Subject: Fix negation broken in commit 6a98395 --- src/analyzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3