aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-02-20 13:27:18 +0000
committergingerBill <bill@gingerbill.org>2025-02-20 13:27:18 +0000
commitc25ac939d4bd86d51c383e96232da1d241c6a504 (patch)
treed3290987fd0d43f449a5792ecf93a6dce1616a5a /src/common.cpp
parent1d348318f216d28b8140c0f8dadf3a9607a52a9b (diff)
Add `cast` back
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 77a82a171..ad1e5a851 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -387,7 +387,7 @@ gb_global Arena string_intern_arena = {};
gb_internal char const *string_intern(char const *text, isize len) {
u64 hash = gb_fnv64a(text, len);
- u64 key = hash ? hash : 1;
+ uintptr key = cast(uintptr)(hash ? hash : 1);
StringIntern **found = map_get(&string_intern_map, key);
if (found) {
for (StringIntern *it = *found; it != nullptr; it = it->next) {