diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-09-04 06:33:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-09-04 06:33:30 -0700 |
commit | 2428eb747884ff3e99ff2a4692d0424092b60b78 (patch) | |
tree | f57844f556c24ba91ac103afdaf06a266e47cf78 /lib.c | |
parent | d87cea357b752768accab13f1f052eba099c8efc (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |