Use PtrMap temporarily

This commit is contained in:
gingerBill
2025-02-20 13:23:23 +00:00
parent 0ab323012e
commit 1d348318f2
3 changed files with 5 additions and 5 deletions

View File

@@ -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) {