From c8f99b360f4c2c0f566c8e3b4ed9ab9a388687c3 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Tue, 3 Jan 2017 20:35:47 +0000 Subject: [PATCH] Fix init_arena_from_context --- core/mem.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }