summaryrefslogtreecommitdiff
path: root/orc-test
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-19 11:09:55 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-19 11:09:55 +0200
commit4b041618cab0e46d6e8ea973f06cc0c0a6fe87b5 (patch)
treee5dfd37d1855de07cc0fe044a61a2119bf736a6c /orc-test
parenteb41b5c3a7c57a8b8a26ffde36d52ef4716f6465 (diff)
orcarray: Use fabs() instead of abs(), the latter is for integers
orcarray.c:254:15: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value] if (abs(a[i] - b[i]) < MIN_NONDENORMAL_D) continue;
Diffstat (limited to 'orc-test')
-rw-r--r--orc-test/orcarray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/orc-test/orcarray.c b/orc-test/orcarray.c
index 089b0d1..70283bf 100644
--- a/orc-test/orcarray.c
+++ b/orc-test/orcarray.c
@@ -251,7 +251,7 @@ orc_array_compare (OrcArray *array1, OrcArray *array2, int flags)
for (i=0;i<array1->n;i++){
if (isnan(a[i]) && isnan(b[i])) continue;
if (a[i] == b[i]) continue;
- if (abs(a[i] - b[i]) < MIN_NONDENORMAL_D) continue;
+ if (fabs(a[i] - b[i]) < MIN_NONDENORMAL_D) continue;
return FALSE;
}
}