aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/air-ctl/fix-resize-error.patch
blob: 34eabedf3920d8ba9edb4ee420f2eec18d5c8637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/container/hash_map.c b/src/container/hash_map.c
index 3f9de33..b1dd419 100644
--- a/src/container/hash_map.c
+++ b/src/container/hash_map.c
@@ -104,6 +104,7 @@ int CTL_hash_map_insert(CTL_hash_map *handle, const void *key, const void *eleme
 	if (handle->size > (handle->B_size - 1) * LOAD_FACTOR)
 	{
 		resize(handle);
+		index = __index(hash, handle->B_size);
 	}
 
 	__CTL_hash_map_node *new_node = (__CTL_hash_map_node *)CTL_malloc(sizeof(__CTL_hash_map_node));