From c4f84a90242b7c507b2636fc99f027345f56d42b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 24 Jun 2024 03:36:35 +0200 Subject: Use fwdnode() when possible --- src/analyzer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3