fix issue with general_memory_check: sentinel is not necessarily less than the first bubble
This commit is contained in:
parent
f5e2fc1d0b
commit
51fb028283
|
@ -77,7 +77,7 @@ general_memory_check(General_Memory *general){
|
|||
|
||||
Bubble *next = bubble->next;
|
||||
Assert(bubble == next->prev);
|
||||
if (next != sentinel){
|
||||
if (next != sentinel && bubble->prev != sentinel){
|
||||
Assert(bubble->next > bubble);
|
||||
Assert(bubble > bubble->prev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue