diff options
| author | Quentin Carbonneaux <[email protected]> | 2024-04-03 23:18:33 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2024-04-03 23:30:07 +0200 |
| commit | de5ced474d17b979666023ba2980493069d3401e (patch) | |
| tree | 1dd5ecd44da78349cefe110464c58a9649e460f3 | |
| parent | c8fc20b8ef5623d7fe4eae5086b132956bf6aa35 (diff) | |
do not parse +N constants
The parsing code for these constants
conflicts with the Tplus token.
| -rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -203,7 +203,7 @@ getint() n = 0; c = fgetc(inf); m = (c == '-'); - if (m || c == '+') + if (m) c = fgetc(inf); do { n = 10*n + (c - '0'); @@ -277,7 +277,7 @@ lex() lnum++; return Tnl; } - if (isdigit(c) || c == '-' || c == '+') { + if (isdigit(c) || c == '-') { ungetc(c, inf); tokval.num = getint(); return Tint; |
