diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-18 06:25:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | c1bea102df3f2907f345b89ff0f66f5055ac4767 (patch) | |
tree | 309d26329d190e24e9b4ebc36e89c42e369f0560 /src/std/arena_allocator.c | |
parent | 81c5f8e750fcda6a2451fb54604130431434f88f (diff) |
Add extern funcs, parameter registers, fix asm_rm RSP bug
Diffstat (limited to 'src/std/arena_allocator.c')
-rw-r--r-- | src/std/arena_allocator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/std/arena_allocator.c b/src/std/arena_allocator.c index 73111dd..4934925 100644 --- a/src/std/arena_allocator.c +++ b/src/std/arena_allocator.c @@ -25,9 +25,10 @@ void arena_allocator_node_deinit(ArenaAllocatorNode *self) { } int arena_allocator_init(ArenaAllocator *self) { + ignore_result_int(buffer_init(&self->mems, NULL)); return_if_error(arena_allocator_node_init(&self->head)); self->current = &self->head; - return buffer_init(&self->mems, NULL); + return 0; } static void arena_allocator_deinit_buffers(ArenaAllocator *self) { |