summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-06-29 17:11:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2024-06-29 17:11:06 -0700
commit15dc034898cf7cc35579146d718875e2881d709b (patch)
tree4b5abf763ed106e2e633f902875d6a53fe28cb57
parent994662336cd98dd3cfa2ab3995d3dfb25f279f98 (diff)
downloadtxr-15dc034898cf7cc35579146d718875e2881d709b.tar.gz
txr-15dc034898cf7cc35579146d718875e2881d709b.tar.bz2
txr-15dc034898cf7cc35579146d718875e2881d709b.zip
lib: rcyc_cons set type to CONS.
* lib.c (rcyc_cons): Reset type of recycled cons to CONS, in case the object is a LCONS.
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index db7b38ed..445fa6b8 100644
--- a/lib.c
+++ b/lib.c
@@ -4996,6 +4996,7 @@ val lcons_cdr(val lcons)
void rcyc_cons(val cons)
{
+ cons->c.type = CONS;
cons->c.cdr = recycled_conses;
cons->c.car = nil;
recycled_conses = cons;