]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
TYPE_NIL, builder->nil, ast_value_codegen for TYPE_NIL
[xonotic/gmqcc.git] / parser.c
index cfb14d3c02306f40e1947c2354c710975383ea5c..f53167ad8e66ae1438da62a34cc062322e509599 100644 (file)
--- 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))
                 {