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-14 21:07:17+02:00
logeb4b3eb34f729b89be4085dbca32c00532f48666
tree2296d70fb5b3b791ab14df5b559e0d0353dcaa23
parenta34df221bbcccc8f39991e1713efba72382ec806
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