diff options
Diffstat (limited to 'vcpkg/ports/air-ctl/fix-resize-error.patch')
| -rw-r--r-- | vcpkg/ports/air-ctl/fix-resize-error.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/air-ctl/fix-resize-error.patch b/vcpkg/ports/air-ctl/fix-resize-error.patch new file mode 100644 index 0000000..34eabed --- /dev/null +++ b/vcpkg/ports/air-ctl/fix-resize-error.patch @@ -0,0 +1,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)); |