From: Wolfgang (Blub) Bumiller Date: Wed, 21 Nov 2012 19:50:27 +0000 (+0100) Subject: check 'ternaries' count X-Git-Tag: 0.1.9~367 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=0787038934f3ccc2ab6959896b2cd87fc7585c9f check 'ternaries' count --- diff --git a/parser.c b/parser.c index 0ebf272..525192e 100644 --- a/parser.c +++ b/parser.c @@ -1278,7 +1278,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma } /* a colon without a pervious question mark cannot be a ternary */ - if (op->id == opid2(':','?')) { + if (!ternaries && op->id == opid2(':','?')) { parser->tok = ':'; break; }