From f313538ea5cfbff0139e46ce71a389ddec5cfffd Mon Sep 17 00:00:00 2001 From: ryuukk <44361234+ryuukk@users.noreply.github.com> Date: Sat, 6 May 2023 18:00:33 +0200 Subject: [PATCH] Missing cast --- src/ptr_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index fbde98693..23278014f 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -47,7 +47,7 @@ gb_internal gb_inline u32 ptr_map_hash_key(uintptr key) { key = key ^ (key << 28); res = cast(u32)key; #elif defined(GB_ARCH_32_BIT) - u32 state = ((u32)key) * 747796405u + 2891336453u; + u32 state = (cast(u32)key) * 747796405u + 2891336453u; u32 word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u; res = (word >> 22u) ^ word; #endif