aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-23 23:07:00 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-23 23:07:00 +0200
commitd8b8faae2ff8381f75db3e7201014a01f632fbec (patch)
tree37725a2c2df3c717eb2980d20f322ad6f2864e74
parent84a857a1d4c5a5a51238a03042e54626dcbe3dbd (diff)
Fix negation broken in commit 6a98395
-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);