aboutsummaryrefslogtreecommitdiff
path: root/src/integer128.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-09 19:53:06 +0100
committergingerBill <bill@gingerbill.org>2018-06-09 19:53:06 +0100
commit268491b224ac07edc50d314c071b19970cf157d0 (patch)
treeaa123c6f95976d7adecb977b9ca4f8d8924ea56b /src/integer128.cpp
parent49ea9ed7226b68cde2eeea3984d61098df9f22e3 (diff)
Use global arena for AstNode allocations
Diffstat (limited to 'src/integer128.cpp')
-rw-r--r--src/integer128.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integer128.cpp b/src/integer128.cpp
index 80f7e9cce..620ecb8a7 100644
--- a/src/integer128.cpp
+++ b/src/integer128.cpp
@@ -323,7 +323,7 @@ String u128_to_string(u128 v, char *out_buf, isize out_buf_len) {
buf[--i] = gb__num_to_char_table[u128_to_i64(u128_mod(v, b))];
isize len = gb_min(gb_size_of(buf)-i, out_buf_len);
- gb_memcopy(out_buf, &buf[i], len);
+ gb_memmove(out_buf, &buf[i], len);
return make_string(cast(u8 *)out_buf, len);
}
String i128_to_string(i128 a, char *out_buf, isize out_buf_len) {
@@ -348,7 +348,7 @@ String i128_to_string(i128 a, char *out_buf, isize out_buf_len) {
}
isize len = gb_min(gb_size_of(buf)-i, out_buf_len);
- gb_memcopy(out_buf, &buf[i], len);
+ gb_memmove(out_buf, &buf[i], len);
return make_string(cast(u8 *)out_buf, len);
}