mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
fix -fcorrect-logic to use double-not instead of a single one - wow that was a bad one
This commit is contained in:
parent
712be84bba
commit
ccbccad994
1 changed files with 5 additions and 4 deletions
9
parser.c
9
parser.c
|
@ -903,12 +903,13 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
|
|||
return false;
|
||||
}
|
||||
out = (ast_expression*)ast_unary_new(ctx, type_not_instr[exprs[i]->expression.vtype], exprs[i]);
|
||||
if (!out)
|
||||
break;
|
||||
if (!out) break;
|
||||
out = (ast_expression*)ast_unary_new(ctx, type_not_instr[exprs[i]->expression.vtype], out);
|
||||
if (!out) break;
|
||||
exprs[i] = out; out = NULL;
|
||||
if (OPTS_FLAG(PERL_LOGIC)) {
|
||||
}
|
||||
}
|
||||
if (OPTS_FLAG(PERL_LOGIC))
|
||||
break;
|
||||
}
|
||||
}
|
||||
out = (ast_expression*)ast_binary_new(ctx, generated_op, exprs[0], exprs[1]);
|
||||
|
|
Loading…
Reference in a new issue