mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-20 11:32:35 -08:00
READ/WRITE-SEQUENCE operates on vectors, not on arbitrary arrays
This commit is contained in:
parent
127d575ade
commit
4344cee5d5
1 changed files with 2 additions and 2 deletions
|
|
@ -1483,7 +1483,7 @@ si_do_write_sequence(cl_object seq, cl_object stream, cl_object s, cl_object e)
|
|||
goto OUTPUT;
|
||||
}
|
||||
if (t != t_string &&
|
||||
!(t == t_array &&
|
||||
!(t == t_vector &&
|
||||
(seq->vector.elttype == aet_b8 || seq->vector.elttype == aet_i8)))
|
||||
{
|
||||
bool ischar = cl_stream_element_type(stream) == @'base-char';
|
||||
|
|
@ -1561,7 +1561,7 @@ si_do_read_sequence(cl_object seq, cl_object stream, cl_object s, cl_object e)
|
|||
goto OUTPUT;
|
||||
}
|
||||
if (t != t_string &&
|
||||
!(t == t_array &&
|
||||
!(t == t_vector &&
|
||||
(seq->vector.elttype == aet_b8 || seq->vector.elttype == aet_i8)))
|
||||
{
|
||||
bool ischar = cl_stream_element_type(stream) == @'base-char';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue