fix issue with general_memory_check: sentinel is not necessarily less than the first bubble

This commit is contained in:
Allen Webster 2016-05-28 20:31:49 -04:00
parent f5e2fc1d0b
commit 51fb028283
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ general_memory_check(General_Memory *general){
Bubble *next = bubble->next; Bubble *next = bubble->next;
Assert(bubble == next->prev); Assert(bubble == next->prev);
if (next != sentinel){ if (next != sentinel && bubble->prev != sentinel){
Assert(bubble->next > bubble); Assert(bubble->next > bubble);
Assert(bubble > bubble->prev); Assert(bubble > bubble->prev);