mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Similar to the update to gb.h
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ GB_ALLOCATOR_PROC(heap_allocator_proc) {
|
|||||||
#elif defined(GB_SYSTEM_LINUX)
|
#elif defined(GB_SYSTEM_LINUX)
|
||||||
// TODO(bill): *nix version that's decent
|
// TODO(bill): *nix version that's decent
|
||||||
case gbAllocation_Alloc: {
|
case gbAllocation_Alloc: {
|
||||||
ptr = aligned_alloc(alignment, size);
|
ptr = aligned_alloc(alignment, (size + alignment - 1) & ~(alignment - 1));
|
||||||
// ptr = malloc(size+alignment);
|
// ptr = malloc(size+alignment);
|
||||||
|
|
||||||
if (flags & gbAllocatorFlag_ClearToZero) {
|
if (flags & gbAllocatorFlag_ClearToZero) {
|
||||||
|
|||||||
Reference in New Issue
Block a user