From bdb41aa0402158b3afb6c6814517c1186859f53f Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Thu, 21 Nov 2024 00:57:16 -0800 Subject: [PATCH] fix off by one in GSI parser --- src/pdb/pdb_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdb/pdb_parse.c b/src/pdb/pdb_parse.c index e6c42699..18a39b54 100644 --- a/src/pdb/pdb_parse.c +++ b/src/pdb/pdb_parse.c @@ -543,7 +543,7 @@ pdb_gsi_from_data(Arena *arena, String8 data){ bucket_offs[j] = hash_record_ptr->symbol_off - 1; hash_record_ptr -= 1; } - PDB_GsiBucket *bucket = &result->buckets[i - 1]; + PDB_GsiBucket *bucket = &result->buckets[i]; bucket->count = num_steps; bucket->offs = bucket_offs;