allocate the buffer immediately

This commit is contained in:
2025-12-16 18:29:58 +01:00
parent 6ad73ea57a
commit 4e15e8eb7e
+1 -1
View File
@@ -96,7 +96,7 @@ typedef struct arena_allocator {
.allocator=BACKING_ALLOCATOR, \
.size=0, \
.capacity=INITIAL_CAPACITY, \
.data=NULL \
.data=allocator_alloc(BACKING_ALLOCATOR, INITIAL_CAPACITY) \
})
allocator_t allocator_from_arena(arena_allocator_t *this);