1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00

Fix bug reading arrays with lengths

* module/ice-9/read.scm (%read): Fix typo.
This commit is contained in:
Andy Wingo 2021-03-02 14:29:34 +01:00
parent e4647a0ca8
commit d69062daf1

View file

@ -500,7 +500,7 @@
(let lp ((ch ch) (chars '())) (let lp ((ch ch) (chars '()))
(when (eof-object? ch) (when (eof-object? ch)
(error "unexpected end of input while reading array")) (error "unexpected end of input while reading array"))
(if (memv ch '(#\( #\@ @\:)) (if (memv ch '(#\( #\@ #\:))
(values ch (values ch
(if (null? chars) (if (null? chars)
#t #t