From d66820e7169ff436a1c622bb82877ada2a5b0c68 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 7 Oct 2016 20:34:04 -0700 Subject: bug: wrong way assert in static slot gc marking. * struct.c (struct_type_mark): We must assert that sl->store is nil if we are not marking it, not that it is non-nil. --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index 52ca0270..29ee89d6 100644 --- a/struct.c +++ b/struct.c @@ -406,7 +406,7 @@ static void struct_type_mark(val obj) if (sl->home_type == st->self) gc_mark(sl->store); else - bug_unless (sl->store != nil); + bug_unless (sl->store == nil); } } -- cgit v1.2.3