summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-04 06:33:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-04 06:33:30 -0700
commit2428eb747884ff3e99ff2a4692d0424092b60b78 (patch)
treef57844f556c24ba91ac103afdaf06a266e47cf78 /lib.c
parentd87cea357b752768accab13f1f052eba099c8efc (diff)
downloadtxr-2428eb747884ff3e99ff2a4692d0424092b60b78.tar.gz
txr-2428eb747884ff3e99ff2a4692d0424092b60b78.tar.bz2
txr-2428eb747884ff3e99ff2a4692d0424092b60b78.zip
type: lcons and string are subtypes of sequence.
Omissions reported by user vapnik spaknik. * lib.c (subtypepe): The lcons type and string type must report as subtypes of sequence.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index ebcd1670..08e1d5ea 100644
--- a/lib.c
+++ b/lib.c
@@ -234,7 +234,7 @@ val subtypep(val sub, val sup)
} else if (sup == sequence_s) {
return tnil(sub == str_s || sub == lit_s || sub == lstr_s ||
sub == vec_s || sub == null_s || sub == cons_s ||
- sub == list_s);
+ sub == lcons_s || sub == list_s || sub == string_s);
} else if (sup == string_s) {
return tnil(sub == str_s || sub == lit_s || sub == lstr_s);
} else if (sup == stream_s) {