Fix -fcorrect-logic

This commit is contained in:
Wolfgang Bumiller 2012-12-20 20:33:05 +01:00
parent b595ec03f8
commit 0988b731b7

View file

@ -1910,7 +1910,7 @@ static ast_expression* process_condition(parser_t *parser, ast_expression *cond,
} }
ifnot = !ifnot; ifnot = !ifnot;
} }
else if (OPTS_FLAG(CORRECT_LOGIC)) { if (OPTS_FLAG(CORRECT_LOGIC)) {
/* everything must use a NOT_ */ /* everything must use a NOT_ */
unary = (ast_unary*)cond; unary = (ast_unary*)cond;
if (!ast_istype(cond, ast_unary) || unary->op < INSTR_NOT_F || unary->op > INSTR_NOT_FNC) if (!ast_istype(cond, ast_unary) || unary->op < INSTR_NOT_F || unary->op > INSTR_NOT_FNC)