X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=parser.cpp;fp=parser.cpp;h=51f7e1ea6c571d20b158953b803b306f52f1c35d;hp=df1715c53f2709371aeadb62af7810460b97f1d8;hb=1a18ff529420930cb4116484991c2dabe3a70654;hpb=ee3c1e43c9e70a856222516ab0f3a8231c1d073f diff --git a/parser.cpp b/parser.cpp index df1715c..51f7e1e 100644 --- a/parser.cpp +++ b/parser.cpp @@ -2523,8 +2523,7 @@ static bool parse_for_go(parser_t *parser, ast_block *block, ast_expression **ou parseerror(parser, "expected for-loop condition"); goto onerr; } - } - else if (!parser_next(parser)) { + } else if (!parser_next(parser)) { parseerror(parser, "expected for-loop condition"); goto onerr; } @@ -2535,7 +2534,6 @@ static bool parse_for_go(parser_t *parser, ast_block *block, ast_expression **ou if (!cond) goto onerr; } - /* move on to incrementor */ if (parser->tok != ';') { parseerror(parser, "expected semicolon after for-loop initializer");