diff options
| author | jon lipstate <52809771+jon-lipstate@users.noreply.github.com> | 2023-05-30 08:23:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-30 08:23:28 -0700 |
| commit | b223bc0302b54bb0629bd94d0b16e0f0720b6682 (patch) | |
| tree | eaa5de636a3fd8f5b008270fbaff268f40769f8c /src/ptr_map.cpp | |
| parent | f5dcbf517b88d7479fa12d5f3b59183a447cae6f (diff) | |
| parent | 3562a38f8cdd43792b6cdfd3327d16b65d25e5d0 (diff) | |
Merge branch 'odin-lang:master' into attr_error
Diffstat (limited to 'src/ptr_map.cpp')
| -rw-r--r-- | src/ptr_map.cpp | 2 |
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 |