1
0
Fork 0

Fixed: Arena header not being aligned

Browse Source
This commit is contained in:
rhuibertsjr 2024-04-26 18:15:13 +02:00
parent 1d00bf01f6
commit 662254d4a4

View File

@ -13,8 +13,8 @@ arena_initialize(u64 size, b8 growable)
result->current = result;
// rhjr: immutable arena header
result->base_pos = sizeof(Arena);
result->offset = sizeof(Arena);
result->base_pos = memory_align_power_of_two(sizeof(Arena));
result->offset = memory_align_power_of_two(sizeof(Arena));
result->growable = growable;
result->size = size;