diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-22 19:41:58 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-22 19:41:58 +0100 |
| commit | f60dc7b0a7f8bf8122df0fa3b4d12603a9775f87 (patch) | |
| tree | add8d1125cf0bf5c40f0c6d39579705b2cb1bc98 /src/string.cpp | |
| parent | a675d3f94d2c10ce6e50b88c6c39b36c746a4d2a (diff) | |
Minor Style Fixes
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cpp b/src/string.cpp index a8e8b5583..7d94f9636 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -1,7 +1,7 @@ gb_global gbArena string_buffer_arena = {}; gb_global gbAllocator string_buffer_allocator = {}; -void init_string_buffer_memory() { +void init_string_buffer_memory(void) { // NOTE(bill): This should be enough memory for file systems gb_arena_init_from_allocator(&string_buffer_arena, gb_heap_allocator(), gb_megabytes(1)); string_buffer_allocator = gb_arena_allocator(&string_buffer_arena); @@ -404,7 +404,7 @@ i32 unquote_string(gbAllocator a, String *s_) { buf[offset++] = cast(u8)r; } else { isize size = gb_utf8_encode_rune(rune_temp, r); - gb_memcopy(buf+offset, rune_temp, size); + gb_memmove(buf+offset, rune_temp, size); offset += size; } |