]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix -fcorrect-logic
authorWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 19:33:05 +0000 (20:33 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 19:33:05 +0000 (20:33 +0100)
parser.c

index 7bf7a0cd89682a4b6fe47e64c97de271a5c1121a..4251d0213f317b0f10068c69e966aab07ce824b8 100644 (file)
--- 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)