From 51fb02828301f2721dcdc9692387d9eb663c45ba Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 28 May 2016 20:31:49 -0400 Subject: [PATCH] fix issue with general_memory_check: sentinel is not necessarily less than the first bubble --- 4ed_mem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4ed_mem.cpp b/4ed_mem.cpp index 535dbee8..e0009911 100644 --- a/4ed_mem.cpp +++ b/4ed_mem.cpp @@ -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);