aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyzer.c')
-rw-r--r--src/analyzer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyzer.c b/src/analyzer.c
index 997e75f..c5a6200 100644
--- a/src/analyzer.c
+++ b/src/analyzer.c
@@ -260,7 +260,7 @@ analyzeexpr(struct azctx ctx, scope_t *scps, type_t *types, ast_t ast,
types[i].kind = TYPE_NUM;
types[i].size = 0;
types[i].issigned = true;
- return i + 1;
+ return fwdnode(ast, i);
case ASTIDENT: {
strview_t sv = toks.strs[ast.lexemes[i]];
@@ -288,7 +288,7 @@ analyzeexpr(struct azctx ctx, scope_t *scps, type_t *types, ast_t ast,
}
types[i] = types[sym->i];
- return i + 1;
+ return fwdnode(ast, i);
}
}