diff options
| author | gingerBill <bill@gingerbill.org> | 2025-02-20 13:23:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-02-20 13:23:23 +0000 |
| commit | 1d348318f216d28b8140c0f8dadf3a9607a52a9b (patch) | |
| tree | 3a4ce6f0265c5d427c612e527681473edd4893fa /src/common.cpp | |
| parent | 0ab323012e4fd0303a7e41587a5919c9be028561 (diff) | |
Use `PtrMap` temporarily
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp index ad1e5a851..77a82a171 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); - uintptr key = cast(uintptr)(hash ? hash : 1); + u64 key = hash ? hash : 1; StringIntern **found = map_get(&string_intern_map, key); if (found) { for (StringIntern *it = *found; it != nullptr; it = it->next) { |