From 70c020aa8fc1baf86bdb3861bd4ff1cda64ffbd4 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Sun, 24 Jul 2016 18:09:50 +0200 Subject: [PATCH] tests: fix a warning spotted when building in osx 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 975788e..2d07a35 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -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 { -- 2.7.4