tests: fix a warning spotted when building in osx
authorJosep Torra <jtorra@oblong.com>
Sun, 24 Jul 2016 16:09:50 +0000 (18:09 +0200)
committerJosep Torra <jtorra@oblong.com>
Sun, 24 Jul 2016 16:09:50 +0000 (18:09 +0200)
orctest.c:730:19: error: logical not is only applied to the left hand side of this comparison
       if (!float_compare (dest_emul[l-ORC_VAR_D1], dest_exec[l-ORC_VAR_D1], i, j) != 0) {

It seems some sort of typo. Fixing by removing the potentially leftover condition.

orc-test/orctest.c

index 975788e..2d07a35 100644 (file)
@@ -727,7 +727,7 @@ orc_test_compare_output_full (OrcProgram *program, int flags)
             if (flags & ORC_TEST_FLAGS_FLOAT) {
               a = print_array_val_float (dest_emul[l-ORC_VAR_D1], i, j);
               b = print_array_val_float (dest_exec[l-ORC_VAR_D1], i, j);
-              if (!float_compare (dest_emul[l-ORC_VAR_D1], dest_exec[l-ORC_VAR_D1], i, j) != 0) {
+              if (!float_compare (dest_emul[l-ORC_VAR_D1], dest_exec[l-ORC_VAR_D1], i, j)) {
                 line_bad = TRUE;
               }
             } else {