Fix anchor token underflow while parsing for-statements.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 27 Oct 2008 15:44:09 +0000 (15:44 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 27 Oct 2008 15:44:09 +0000 (15:44 +0000)
[r23236]

parser.c

index 5bda23a..df1a6b6 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -9618,8 +9618,8 @@ static statement_t *parse_for(void)
                                 "step of 'for'-statement has no effect");
                }
        }
-       rem_anchor_token(')');
        expect(')');
+       rem_anchor_token(')');
        statement->fors.body = parse_loop_body(statement);
 
        assert(scope == &statement->fors.scope);