summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-07 20:34:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-07 20:34:04 -0700
commitd66820e7169ff436a1c622bb82877ada2a5b0c68 (patch)
treef6cb7992751d5fd8b60549d30e0413e2632ccb45
parent8d51949bb5dea5a787033313e87bfe014bca5899 (diff)
downloadtxr-d66820e7169ff436a1c622bb82877ada2a5b0c68.tar.gz
txr-d66820e7169ff436a1c622bb82877ada2a5b0c68.tar.bz2
txr-d66820e7169ff436a1c622bb82877ada2a5b0c68.zip
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.
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}