aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ds/hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ds/hashmap.c b/src/ds/hashmap.c
index 9cdc663..c547af4 100644
--- a/src/ds/hashmap.c
+++ b/src/ds/hashmap.c
@@ -163,7 +163,7 @@ static void rehash(void *p_hm, size_t entry_size, size_t key_size, size_t key_of
.filled = mos_safe_calloc((new_cap - 1) / 8 + 1, 1),
.dead = mos_safe_calloc((new_cap - 1) / 8 + 1, 1),
.size = mos_hm_size(hm),
- .cap = 2 * hdr->cap,
+ .cap = new_cap,
.hash = hdr->hash,
.eq = hdr->eq,
};