From 047f76389fc9a130fde5393fcc7d5d8b76882f83 Mon Sep 17 00:00:00 2001 From: Quinn Stephens Date: Tue, 10 Jun 2025 08:50:13 -0400 Subject: parser: Actually set nodes' hash values This was causing hashmap_add() to place every node in the same row. Signed-off-by: Quinn Stephens --- src/parser/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/parser.c b/src/parser/parser.c index e5b9973..a74da06 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -148,6 +148,7 @@ parse_decl(struct parser *ctx) node->name_len = ctx->tok.len; node->type = type; node->ptr_levels = ptr_levels; + node->hashmap_entry.hash = ctx->tok.hash; parser_advance(ctx); if (ctx->tok.kind == TOK_LPAREN) { -- cgit v1.2.3