authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-12 12:49:48+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-12 12:49:48+02:00
log05671ced91b539c778e663523cc541402a923af5
tree97a55f63209fc87cf2f3120eb39d939382220508
parent7aadd325d1efad3c6222a91c354d92994a7bf76e
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.hash_map: fix compile error in removeByPtr()


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/hash_map.zig+1-1
...@@ -1274,7 +1274,7 @@ fn Custom(...@@ -1274,7 +1274,7 @@ fn Custom(
1274 // map, which is assumed to exist as key_ptr must be valid. This1274 // map, which is assumed to exist as key_ptr must be valid. This
1275 // item must be at index 0.1275 // item must be at index 0.
1276 const idx = if (@sizeOf(K) > 0)1276 const idx = if (@sizeOf(K) > 0)
1277 @as([*]K, @ptrCast(key_ptr)) - self.keys()1277 @as([*]const K, @ptrCast(key_ptr)) - self.keys()
1278 else1278 else
1279 0;1279 0;
12801280