aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2023-05-18 11:26:02 +0100
committerGitHub <noreply@github.com>2023-05-18 11:26:02 +0100
commit1692dcf8d54eea3ecfcb120a689b6dc07ca85a59 (patch)
tree9fc4ea4cd6509a06724df80e8e8e1ed4355b3406
parent5ec47191240c19e32c2db273a1cfc83c0cdc5ff8 (diff)
parentf313538ea5cfbff0139e46ce71a389ddec5cfffd (diff)
Merge pull request #2514 from ryuukk/patch-2
Missing cast
-rw-r--r--src/ptr_map.cpp2
1 files changed, 1 insertions, 1 deletions
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