]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Simplify
authorDale Weiler <killfieldengine@gmail.com>
Fri, 29 Nov 2013 18:50:06 +0000 (13:50 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 29 Nov 2013 18:50:06 +0000 (13:50 -0500)
fold.c

diff --git a/fold.c b/fold.c
index 84b01c772e707c2b8e86fc5633b99120e0c678a4..3d3041d9414b9ad7e75d1dafdbd90e623f571baa 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -609,11 +609,11 @@ static GMQCC_INLINE ast_expression *fold_op_cmp(fold_t *fold, ast_value *a, ast_
         if (isfloat(a) && isfloat(b)) {
             float la = fold_immvalue_float(a);
             float lb = fold_immvalue_float(b);
-            return (ast_expression*)fold->imm_float[!!(ne ? la != lb : la == lb)];
+            return (ast_expression*)fold->imm_float[!(ne ? la == lb : la != lb)];
         } if (isvector(a) && isvector(b)) {
             vec3_t la = fold_immvalue_vector(a);
             vec3_t lb = fold_immvalue_vector(b);
-            return (ast_expression*)fold->imm_float[!!(ne ? vec3_cmp(la, lb) : !vec3_cmp(la, lb))];
+            return (ast_expression*)fold->imm_float[!(ne ? vec3_cmp(la, lb) : !vec3_cmp(la, lb))];
         }
     }
     return NULL;