From 268491b224ac07edc50d314c071b19970cf157d0 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 9 Jun 2018 19:53:06 +0100 Subject: Use global arena for AstNode allocations --- src/integer128.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/integer128.cpp') 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); } -- cgit v1.2.3