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 | 60dc066432b343d059eadd4b19a4ca9f795f0389 (patch) | |
tree | f6cb7992751d5fd8b60549d30e0413e2632ccb45 | |
parent | 03fb58a9f33b49e895ad5e28016275d7e88db3ae (diff) | |
download | txr-60dc066432b343d059eadd4b19a4ca9f795f0389.tar.gz txr-60dc066432b343d059eadd4b19a4ca9f795f0389.tar.bz2 txr-60dc066432b343d059eadd4b19a4ca9f795f0389.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.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); } } |