diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-07-31 22:29:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 0f26e1d204d3a3026ca3edfc4c6bd9638b2632e7 (patch) | |
tree | de196ca25cf8f685e14b219198162d68c61efcfd /src/std | |
parent | fa2a9e79e21063137f863887adc88fc74d3573e2 (diff) |
Add nullable, add bytecode documentation
Diffstat (limited to 'src/std')
-rw-r--r-- | src/std/arena_allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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*)); } |