diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/air-ctl/fix-resize-error.patch | |
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)); |