diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-23 11:38:18 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-23 11:38:18 +0000 |
| commit | 55176e52fcb977268625cfc7f7afaaaa6bf5d06f (patch) | |
| tree | 7727aaff0d9516785709fe86da7bdd6a251847a6 /src/exact_value.cpp | |
| parent | 4eb08bb0967b1a184c9e5453d20dc187777317ba (diff) | |
Use `heap_allocator()` with `-debug`; Reinstate the arena guards
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index f4c85505d..fc4ae2155 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -60,7 +60,7 @@ gb_internal uintptr hash_exact_value(ExactValue v) { case ExactValue_Bool: return gb_fnv32a(&v.value_bool, gb_size_of(v.value_bool)); case ExactValue_String: - return ptr_map_hash_key(string_intern(v.value_string)); + return gb_fnv32a(v.value_string.text, v.value_string.len); case ExactValue_Integer: { u32 key = gb_fnv32a(v.value_integer.dp, gb_size_of(*v.value_integer.dp) * v.value_integer.used); |