mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Fix -fcorrect-logic
This commit is contained in:
parent
b595ec03f8
commit
0988b731b7
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1910,7 +1910,7 @@ static ast_expression* process_condition(parser_t *parser, ast_expression *cond,
|
|||
}
|
||||
ifnot = !ifnot;
|
||||
}
|
||||
else if (OPTS_FLAG(CORRECT_LOGIC)) {
|
||||
if (OPTS_FLAG(CORRECT_LOGIC)) {
|
||||
/* everything must use a NOT_ */
|
||||
unary = (ast_unary*)cond;
|
||||
if (!ast_istype(cond, ast_unary) || unary->op < INSTR_NOT_F || unary->op > INSTR_NOT_FNC)
|
||||
|
|
Loading…
Reference in a new issue