mirror of
https://github.com/ToyB-Chan/minimal-heap.git
synced 2026-07-13 21:51:16 +02:00
Update minimal_heap_implementation.inl
This commit is contained in:
@@ -142,7 +142,8 @@ void* MIHP_Allocate(MIHP_Heap* heap, size_t size)
|
|||||||
}
|
}
|
||||||
} while (nextArea != heap->LastSuccessfulAllocationArea);
|
} while (nextArea != heap->LastSuccessfulAllocationArea);
|
||||||
|
|
||||||
AllocateNewArea:
|
/* No free segment found (in time), allocate new area */
|
||||||
|
|
||||||
size_t newAreaSize = heap->Stats.TotalSize;
|
size_t newAreaSize = heap->Stats.TotalSize;
|
||||||
|
|
||||||
while (newAreaSize < size)
|
while (newAreaSize < size)
|
||||||
|
|||||||
Reference in New Issue
Block a user