aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-13 01:30:30 +0100
committergingerBill <bill@gingerbill.org>2021-09-13 01:30:30 +0100
commit042dbda47f8a428c1be2b1af2937f0cbff109c11 (patch)
tree9185639a96d96da650ab290961531036f6ec4e8c /src/exact_value.cpp
parent2d7aea79b94721362f4fc5285c2a99ab37f52a58 (diff)
Replace many uses of `heap_allocator()` with `permanent_allocator()`
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index d42f5359e..363c6d863 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -832,7 +832,7 @@ ExactValue exact_binary_operator_value(TokenKind op, ExactValue x, ExactValue y)
String sx = x.value_string;
String sy = y.value_string;
isize len = sx.len+sy.len;
- u8 *data = gb_alloc_array(heap_allocator(), u8, len);
+ u8 *data = gb_alloc_array(permanent_allocator(), u8, len);
gb_memmove(data, sx.text, sx.len);
gb_memmove(data+sx.len, sy.text, sy.len);
return exact_value_string(make_string(data, len));