aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar gingerBill 2018-05-05 20:38:51 +0100
committerGravatar GitHub 2018-05-05 20:38:51 +0100
commit17997cba79842c5d07d38090997f0487603f8c94 (patch)
tree15092bebec39bcb93ce79e08d547b906903a4833
parentMerge pull request #29 from pmttavara/patch-1 (diff)
parentFixed GB_TABLE rehash (diff)
Merge pull request #30 from terickson001/master
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) \