From 0988b731b753d8246bd143bd7e71919a0ea254ef Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 20:33:05 +0100 Subject: [PATCH] Fix -fcorrect-logic --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 7bf7a0c..4251d02 100644 --- a/parser.c +++ b/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) -- 2.39.2