From f1e97b94a4a427fb43b8d5f5df3c7470fe4b2c96 Mon Sep 17 00:00:00 2001 From: samsonium Date: Sat, 17 Oct 2026 20:20:10 +0300 Subject: [PATCH] fix: fix toke->value assign on name-not-found error --- src/compiler/fzl_walker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/fzl_walker.c b/src/compiler/fzl_walker.c index a09a9b9..783c629 100644 --- a/src/compiler/fzl_walker.c +++ b/src/compiler/fzl_walker.c @@ -1097,7 +1097,7 @@ fzl_walk_res_t walk(fzl_walker_t *walker, fzl_node_t *node) if (!found) { - fzl_token_t *tok = node->binary_op.left->token->value; + fzl_token_t *tok = node->binary_op.left->token; snprintf(wlast_err, sizeof(wlast_err), "'%s': name '%s' is not exists at %ld:%ld", tok->filename, (char *)tok->value, tok->ln, tok->cn);