From: Sebastian Dröge Date: Mon, 19 May 2014 09:09:55 +0000 (+0200) Subject: orcarray: Use fabs() instead of abs(), the latter is for integers X-Git-Tag: orc-0.4.20~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b041618cab0e46d6e8ea973f06cc0c0a6fe87b5;p=platform%2Fupstream%2Forc.git 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; --- 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;in;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; } }