]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
bit more concise
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 15:28:11 +0000 (16:28 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 12 Nov 2013 15:28:11 +0000 (16:28 +0100)
fold.c

diff --git a/fold.c b/fold.c
index bd06737e245593d1fee766820980d731da70bc11..48ae6f15c3e92aee67586fa98441fe07707f5f20 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -537,11 +537,10 @@ static GMQCC_INLINE ast_expression *fold_op_xor(fold_t *fold, ast_value *a, ast_
         if (fold_can_2(a, b))
             return fold_constgen_float(fold, (qcfloat_t)(((qcint_t)fold_immvalue_float(a)) ^ ((qcint_t)fold_immvalue_float(b))));
     } else {
-        if (isvector(b)) {
-            if (fold_can_2(a, b))
+        if (fold_can_2(a, b)) {
+            if (isvector(b))
                 return fold_constgen_vector(fold, vec3_xor(fold_immvalue_vector(a), fold_immvalue_vector(b)));
-        } else {
-            if (fold_can_2(a, b))
+            else
                 return fold_constgen_vector(fold, vec3_xorvf(fold_immvalue_vector(a), fold_immvalue_float(b)));
         }
     }