mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
check 'ternaries' count
This commit is contained in:
parent
90bd91e294
commit
0787038934
1 changed files with 1 additions and 1 deletions
2
parser.c
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue