aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tyler Erickson 2018-05-05 12:32:33 -0700
committerGravatar Tyler Erickson 2018-05-05 12:32:33 -0700
commit3561f653e85144e2cf798b738cab9c6ae3548f0a (patch)
tree15092bebec39bcb93ce79e08d547b906903a4833
parentMerge pull request #29 from pmttavara/patch-1 (diff)
Fixed GB_TABLE rehash
-rw-r--r--gb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gb.h b/gb.h
index db4de72..8b3304d 100644
--- a/gb.h
+++ b/gb.h
@@ -1876,7 +1876,7 @@ void GB_JOIN2(FUNC,rehash)(NAME *h, isize new_count) { \
gbHashTableFindResult fr; \
if (gb_array_count(nh.hashes) == 0) \
GB_JOIN2(FUNC,grow)(&nh); \
- e = &nh.entries[i]; \
+ e = &h->entries[i]; \
fr = GB_JOIN2(FUNC,_find)(&nh, e->key); \
j = GB_JOIN2(FUNC,_add_entry)(&nh, e->key); \
if (fr.entry_prev < 0) \