X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=parser.c;h=f53167ad8e66ae1438da62a34cc062322e509599;hb=40b2a26e896fd7a3f54c94ccb2abd9d517491822;hp=cfb14d3c02306f40e1947c2354c710975383ea5c;hpb=a60d0182db75e7b32e4efe5384a3b5dd4b7cc0ff;p=xonotic%2Fgmqcc.git diff --git a/parser.c b/parser.c index cfb14d3..f53167a 100644 --- a/parser.c +++ b/parser.c @@ -1665,7 +1665,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma const oper_info *olast = NULL; size_t o; for (o = 0; o < operator_count; ++o) { - if ((!(operators[o].flags & OP_PREFIX) == wantop) && + if (((!(operators[o].flags & OP_PREFIX) == !!wantop)) && /* !(operators[o].flags & OP_SUFFIX) && / * remove this */ !strcmp(parser_tokval(parser), operators[o].op)) {