diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-06-29 17:11:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-06-29 17:11:06 -0700 |
commit | 15dc034898cf7cc35579146d718875e2881d709b (patch) | |
tree | 4b5abf763ed106e2e633f902875d6a53fe28cb57 | |
parent | 994662336cd98dd3cfa2ab3995d3dfb25f279f98 (diff) | |
download | txr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |