aboutsummaryrefslogtreecommitdiff
path: root/src/std
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-07-31 22:29:24 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit0f26e1d204d3a3026ca3edfc4c6bd9638b2632e7 (patch)
treede196ca25cf8f685e14b219198162d68c61efcfd /src/std
parentfa2a9e79e21063137f863887adc88fc74d3573e2 (diff)
Add nullable, add bytecode documentation
Diffstat (limited to 'src/std')
-rw-r--r--src/std/arena_allocator.c2
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*));
}