fix read_vector bug

This commit is contained in:
Yuichi Nishiwaki 2014-06-25 21:40:51 +09:00
parent 029efc91c9
commit 4d9dc8011c
1 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,8 @@ read_vector(pic_state *pic, struct pic_port *port, char c)
{
pic_value val;
c = next(port);
val = pic_nil_value();
while ((c = skip(port, c)) != ')') {
val = pic_cons(pic, read(pic, port, c), val);