Fixed: Arena header not being aligned
This commit is contained in:
parent
1d00bf01f6
commit
662254d4a4
|
@ -13,8 +13,8 @@ arena_initialize(u64 size, b8 growable)
|
||||||
result->current = result;
|
result->current = result;
|
||||||
|
|
||||||
// rhjr: immutable arena header
|
// rhjr: immutable arena header
|
||||||
result->base_pos = sizeof(Arena);
|
result->base_pos = memory_align_power_of_two(sizeof(Arena));
|
||||||
result->offset = sizeof(Arena);
|
result->offset = memory_align_power_of_two(sizeof(Arena));
|
||||||
|
|
||||||
result->growable = growable;
|
result->growable = growable;
|
||||||
result->size = size;
|
result->size = size;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user