summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index 761646ff..52320dfe 100644
--- a/lib.c
+++ b/lib.c
@@ -2857,9 +2857,8 @@ val cons(val car, val cdr)
if (recycled_conses) {
obj = recycled_conses;
recycled_conses = recycled_conses->c.cdr;
-#if CONFIG_GEN_GC
- gc_mutated(obj);
-#endif
+ setcheck(obj, car);
+ setcheck(obj, cdr);
} else {
obj = make_obj();
obj->c.type = CONS;