fix negative number reader

This commit is contained in:
Yuichi Nishiwaki
2014-06-27 08:55:01 +09:00
parent a98411cd0b
commit 0b85e251a2
+1 -1
View File
@@ -210,7 +210,7 @@ read_minus(pic_state *pic, struct pic_port *port, char c)
/* TODO: -inf.0, -nan.0 */
if (isdigit(peek(port))) {
return negate(read_number(pic, port, c));
return negate(read_number(pic, port, next(port)));
}
else {
return read_symbol(pic, port, c);