projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aa37174
)
Fix off-by-one error in error message.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:53:26 +0000
(22:53 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:53:26 +0000
(22:53 +0000)
[r23694]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
68a7d17
..
852f73a
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-3629,7
+3629,6
@@
static void parse_declaration_specifiers(declaration_specifiers_t *specifiers)
break;
case T_long:
break;
case T_long:
- next_token();
if (type_specifiers & SPECIFIER_LONG_LONG) {
errorf(HERE, "multiple type specifiers given");
} else if (type_specifiers & SPECIFIER_LONG) {
if (type_specifiers & SPECIFIER_LONG_LONG) {
errorf(HERE, "multiple type specifiers given");
} else if (type_specifiers & SPECIFIER_LONG) {
@@
-3637,6
+3636,7
@@
static void parse_declaration_specifiers(declaration_specifiers_t *specifiers)
} else {
type_specifiers |= SPECIFIER_LONG;
}
} else {
type_specifiers |= SPECIFIER_LONG;
}
+ next_token();
break;
case T_struct: {
break;
case T_struct: {