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 | 3987b83f599c83a554a9eede2073991651fba7a2 (patch) | |
tree | 4b5abf763ed106e2e633f902875d6a53fe28cb57 | |
parent | a887ac934393d417673b35fad0f22d5087901582 (diff) | |
download | txr-3987b83f599c83a554a9eede2073991651fba7a2.tar.gz txr-3987b83f599c83a554a9eede2073991651fba7a2.tar.bz2 txr-3987b83f599c83a554a9eede2073991651fba7a2.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; |