diff options
author | Quinn Stephens <quinn@osmora.org> | 2025-06-10 08:50:13 -0400 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2025-06-10 08:50:13 -0400 |
commit | 047f76389fc9a130fde5393fcc7d5d8b76882f83 (patch) | |
tree | 015b73270c4b9dd05fd26cc234c3279fab4ab886 | |
parent | 8d70d9c43fa57c48ef893b73e69a34ae88c8c392 (diff) |
parser: Actually set nodes' hash values
This was causing hashmap_add() to place every node in the same row.
Signed-off-by: Quinn Stephens <quinn@osmora.org>
-rw-r--r-- | src/parser/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |