do not parse +N constants
The parsing code for these constants conflicts with the Tplus token.
This commit is contained in:
parent
c8fc20b8ef
commit
de5ced474d
1 changed files with 2 additions and 2 deletions
4
parse.c
4
parse.c
|
@ -203,7 +203,7 @@ getint()
|
||||||
n = 0;
|
n = 0;
|
||||||
c = fgetc(inf);
|
c = fgetc(inf);
|
||||||
m = (c == '-');
|
m = (c == '-');
|
||||||
if (m || c == '+')
|
if (m)
|
||||||
c = fgetc(inf);
|
c = fgetc(inf);
|
||||||
do {
|
do {
|
||||||
n = 10*n + (c - '0');
|
n = 10*n + (c - '0');
|
||||||
|
@ -277,7 +277,7 @@ lex()
|
||||||
lnum++;
|
lnum++;
|
||||||
return Tnl;
|
return Tnl;
|
||||||
}
|
}
|
||||||
if (isdigit(c) || c == '-' || c == '+') {
|
if (isdigit(c) || c == '-') {
|
||||||
ungetc(c, inf);
|
ungetc(c, inf);
|
||||||
tokval.num = getint();
|
tokval.num = getint();
|
||||||
return Tint;
|
return Tint;
|
||||||
|
|
Loading…
Add table
Reference in a new issue