From 55176e52fcb977268625cfc7f7afaaaa6bf5d06f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 23 Jan 2023 11:38:18 +0000 Subject: Use `heap_allocator()` with `-debug`; Reinstate the arena guards --- src/exact_value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exact_value.cpp') 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); -- cgit v1.2.3