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; }