summaryrefslogtreecommitdiffstats
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
commitf6c24e7d02d69e4052baf40bfc63e8aae509b269 (patch)
treef57844f556c24ba91ac103afdaf06a266e47cf78
parent05e83b70effded278dba0a5c4a1789aa97bb7279 (diff)
downloadtxr-f6c24e7d02d69e4052baf40bfc63e8aae509b269.tar.gz
txr-f6c24e7d02d69e4052baf40bfc63e8aae509b269.tar.bz2
txr-f6c24e7d02d69e4052baf40bfc63e8aae509b269.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.
-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) {