diff options
author | Doug Nazar <nazard@nazar.ca> | 2019-09-13 19:15:47 -0400 |
---|---|---|
committer | Doug Nazar <nazard@nazar.ca> | 2019-09-13 19:15:47 -0400 |
commit | a49cc3e09d0ccf2c8fa4b14dcdc4c4d42eaf2b47 (patch) | |
tree | 8a6a303643719176883a40188ca67cfe4aff31a8 /orc-test | |
parent | 0b1a288835d6a3b6d52f77e0c2e86d685de6526e (diff) |
orctest: Fix parentheses location in ULP test
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 614421b..d9cb9d5 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -523,14 +523,14 @@ float_compare (OrcArray *array1, OrcArray *array2, int i, int j) if (isnan(*(float *)ptr1) && isnan(*(float *)ptr2)) return TRUE; if (*(float *)ptr1 == *(float *)ptr2) return TRUE; if ((*(float *)ptr1 < 0.0) == (*(float *)ptr2 < 0.0) && - abs((orc_int32)(*(orc_uint32 *)ptr1 - *(orc_uint32 *)ptr2) <= 2)) + abs((orc_int32)(*(orc_uint32 *)ptr1 - *(orc_uint32 *)ptr2)) <= 2) return TRUE; return FALSE; case 8: if (isnan(*(double *)ptr1) && isnan(*(double *)ptr2)) return TRUE; if (*(double *)ptr1 == *(double *)ptr2) return TRUE; if ((*(double *)ptr1 < 0.0) == (*(double *)ptr2 < 0.0) && - llabs((orc_int64)(*(orc_uint64 *)ptr1 - *(orc_uint64 *)ptr2) <= 2)) + llabs((orc_int64)(*(orc_uint64 *)ptr1 - *(orc_uint64 *)ptr2)) <= 2) return TRUE; return FALSE; } |