diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-07 20:34:04 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-07 20:34:04 -0700 |
commit | d66820e7169ff436a1c622bb82877ada2a5b0c68 (patch) | |
tree | f6cb7992751d5fd8b60549d30e0413e2632ccb45 /struct.c | |
parent | 8d51949bb5dea5a787033313e87bfe014bca5899 (diff) | |
download | txr-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.
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |