aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-03 20:35:47 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-03 20:35:47 +0000
commitc8f99b360f4c2c0f566c8e3b4ed9ab9a388687c3 (patch)
tree2e4e5797c2fc50ee5e995e9c59e72aa3a4889cfd
parentb76f6a8c27a3811b265d865adc73aac75988e875 (diff)
Fix init_arena_from_context
-rw-r--r--core/mem.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem.odin b/core/mem.odin
index d625ec0b2..f163a219f 100644
--- a/core/mem.odin
+++ b/core/mem.odin
@@ -138,7 +138,7 @@ init_arena_from_memory :: proc(using a: ^Arena, data: []byte) {
init_arena_from_context :: proc(using a: ^Arena, size: int) {
backing = context.allocator;
- memory = new_slice(byte, 0, size);
+ memory = new_slice(byte, size);
temp_count = 0;
}