diff options
author | Josep Torra <jtorra@oblong.com> | 2016-07-24 19:09:50 +0300 |
---|---|---|
committer | Josep Torra <jtorra@oblong.com> | 2016-07-24 19:09:50 +0300 |
commit | 70c020aa8fc1baf86bdb3861bd4ff1cda64ffbd4 (patch) | |
tree | 47cc93a576ac59fbb1e97f65fcfcf8e44ecb7bb4 /orc-test/orctest.c | |
parent | c471352db4764bdcc24223338639e4c3f52b3e51 (diff) |
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.
Diffstat (limited to 'orc-test/orctest.c')
-rw-r--r-- | orc-test/orctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |