From 1644f22d76b24ead55fdf7ad48ec7b32323b427b Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 18 Apr 2025 14:46:02 +0330 Subject: fix variable definition in loops --- src/compiler/ast-tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/ast-tree.h') diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index a5af775..43971ab 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -111,6 +111,7 @@ typedef struct AstTreeVariable { char *name_end; AstTree *type; AstTree *value; + AstTree *initValue; bool isConst; } AstTreeVariable; -- cgit v1.2.3