projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d097367
)
Slightly simplify checking octal numbers in the lexer.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 22 Apr 2010 16:19:16 +0000
(16:19 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 22 Apr 2010 16:19:16 +0000
(16:19 +0000)
[r27432]
lexer.c
patch
|
blob
|
history
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];
- if (t
== '8' || t == '9
')
+ if (t
>= '8
')
errorf(&lexer_token.source_position,
"invalid digit '%c' in octal number", t);
}