aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-05 14:25:29 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-06 14:23:23 -0800
commit86261915497fe6b9e0802b2d1e23b5f49c1d2757 (patch)
tree52b08560ef36070751c6cf9bc0cf1062c9d30da1 /lib/std/array_hash_map.zig
parent7320e8b3cd7c8f482fd99793f2ed29cf610319d7 (diff)
downloadzig-86261915497fe6b9e0802b2d1e23b5f49c1d2757.tar.gz
zig-86261915497fe6b9e0802b2d1e23b5f49c1d2757.zip
std.heap.GeneralPurposeAllocator: fix slot_counts calculation
In larger small buckets, the comptime logic that computed slot count did not verify that the number it produced was valid. Now it verifies it, which made this bug into a compile error. Then I fixed the bug by introducing a "minimum slots per bucket" declaration.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions