fix negative number reader
This commit is contained in:
parent
a98411cd0b
commit
0b85e251a2
|
@ -210,7 +210,7 @@ read_minus(pic_state *pic, struct pic_port *port, char c)
|
||||||
/* TODO: -inf.0, -nan.0 */
|
/* TODO: -inf.0, -nan.0 */
|
||||||
|
|
||||||
if (isdigit(peek(port))) {
|
if (isdigit(peek(port))) {
|
||||||
return negate(read_number(pic, port, c));
|
return negate(read_number(pic, port, next(port)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return read_symbol(pic, port, c);
|
return read_symbol(pic, port, c);
|
||||||
|
|
Loading…
Reference in New Issue