Modified to allow a space between the sign and the first digit of a constant.
This commit is contained in:
parent
9b920e59cb
commit
67c4f3de87
|
@ -293,6 +293,11 @@ getnumber(c, ap)
|
|||
c = getbyte();
|
||||
}
|
||||
|
||||
/* Soak up any whitespace (to allow "- 4" to be considered a number). */
|
||||
|
||||
while (isspace(c))
|
||||
c = getbyte();
|
||||
|
||||
if (! isdigit(c)) {
|
||||
ungetbyte(c);
|
||||
syntax("digit expected");
|
||||
|
|
Loading…
Reference in a new issue