diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-03 20:35:47 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-03 20:35:47 +0000 |
| commit | c8f99b360f4c2c0f566c8e3b4ed9ab9a388687c3 (patch) | |
| tree | 2e4e5797c2fc50ee5e995e9c59e72aa3a4889cfd | |
| parent | b76f6a8c27a3811b265d865adc73aac75988e875 (diff) | |
Fix init_arena_from_context
| -rw-r--r-- | core/mem.odin | 2 |
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; } |