diff options
| author | 2018-05-05 12:32:33 -0700 | |
|---|---|---|
| committer | 2018-05-05 12:32:33 -0700 | |
| commit | 3561f653e85144e2cf798b738cab9c6ae3548f0a (patch) | |
| tree | 15092bebec39bcb93ce79e08d547b906903a4833 | |
| parent | Merge pull request #29 from pmttavara/patch-1 (diff) | |
Fixed GB_TABLE rehash
| -rw-r--r-- | gb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) \ |
