summaryrefslogtreecommitdiff
path: root/src/parser/parser_type.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 19:59:15 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 19:59:15 +0000
commit1fc29e1b1c505759522175478bb447cd3e4ad36d (patch)
treee2ce9a8922da6ed603ee1b84641ceb77f37ccee1 /src/parser/parser_type.c
parent81b76a994961260b7bc67278754798c5e85fa3c5 (diff)
Include correct header file and refactor code to prevent redefinition.v0.1.3bexperimental
Diffstat (limited to 'src/parser/parser_type.c')
-rw-r--r--src/parser/parser_type.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/parser_type.c b/src/parser/parser_type.c
index 0585baa..c01f061 100644
--- a/src/parser/parser_type.c
+++ b/src/parser/parser_type.c
@@ -634,7 +634,7 @@ Type *parse_type_base(ParserContext *ctx, Lexer *l)
{
// Look up in symbol table for constant propagation
char *name = token_strdup(size_tok);
- Symbol *sym = find_symbol_entry(ctx, name);
+ ZenSymbol *sym = find_symbol_entry(ctx, name);
if (sym && sym->is_const_value)
{
size = sym->const_int_val;
@@ -846,7 +846,7 @@ Type *parse_type_formal(ParserContext *ctx, Lexer *l)
{
Token t = lexer_peek(l);
char *name = token_strdup(t);
- Symbol *sym = find_symbol_entry(ctx, name);
+ ZenSymbol *sym = find_symbol_entry(ctx, name);
if (sym && sym->is_const_value)
{
size = sym->const_int_val;