From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 19:33:05 +0000 (+0100) Subject: Fix -fcorrect-logic X-Git-Tag: 0.2~44 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0988b731b753d8246bd143bd7e71919a0ea254ef;p=xonotic%2Fgmqcc.git Fix -fcorrect-logic --- 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)