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:
@@ -90,7 +90,7 @@ bool MIHP_IsHeapInitialized(const MIHP_Heap* heap)
|
|||||||
bool MIHP_UninitializeHeap(MIHP_Heap* heap, bool force)
|
bool MIHP_UninitializeHeap(MIHP_Heap* heap, bool force)
|
||||||
{
|
{
|
||||||
if (!MIHP_IsHeapInitialized(heap))
|
if (!MIHP_IsHeapInitialized(heap))
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (!force && heap->Stats.NumTotalOccupiedSegments > 0)
|
if (!force && heap->Stats.NumTotalOccupiedSegments > 0)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user