From 0f26e1d204d3a3026ca3edfc4c6bd9638b2632e7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 31 Jul 2019 22:29:24 +0200 Subject: Add nullable, add bytecode documentation --- src/std/arena_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/std') diff --git a/src/std/arena_allocator.c b/src/std/arena_allocator.c index 20f0394..14787f1 100644 --- a/src/std/arena_allocator.c +++ b/src/std/arena_allocator.c @@ -105,6 +105,6 @@ int arena_allocator_alloc(ArenaAllocator *self, usize size, void **mem) { int arena_allocator_add_mem(ArenaAllocator *self, usize *result_index) { void *null_data; null_data = NULL; - *result_index = buffer_get_size(&self->mems, sizeof(void*)); + *result_index = buffer_get_size(&self->mems, void*); return buffer_append(&self->mems, &null_data, sizeof(void*)); } -- cgit v1.2.3