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(
12741274 // map, which is assumed to exist as key_ptr must be valid. This
12751275 // item must be at index 0.
12761276 const idx = if (@sizeOf(K) > 0)
1277 @as([*]K, @ptrCast(key_ptr)) - self.keys()
1277 @as([*]const K, @ptrCast(key_ptr)) - self.keys()
12781278 else
12791279 0;
12801280