projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update config.mak.example: No more libcore and liblpp.
[cparser]
/
lexer.c
diff --git
a/lexer.c
b/lexer.c
index
15c12a0
..
0877499
100644
(file)
--- a/
lexer.c
+++ b/
lexer.c
@@
-768,7
+768,7
@@
static void parse_number(void)
/* check for invalid octal digits */
for (size_t i= 0; i < size; ++i) {
char t = string[i];
/* check for invalid octal digits */
for (size_t i= 0; i < size; ++i) {
char t = string[i];
- if (t
== '8' || t == '9
')
+ if (t
>= '8
')
errorf(&lexer_token.source_position,
"invalid digit '%c' in octal number", t);
}
errorf(&lexer_token.source_position,
"invalid digit '%c' in octal number", t);
}