Fix off-by-one error in error message.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:53:26 +0000 (22:53 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:53:26 +0000 (22:53 +0000)
[r23694]

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:
-                       next_token();
                        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;
                        }
+                       next_token();
                        break;
 
                case T_struct: {