diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2015-10-14 15:13:34 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-19 11:49:52 -0400 |
commit | 610dd8a58a75bb6a5b7d7abbae476d1cc4be519e (patch) | |
tree | d9e4db4ba17d42fd97cd50f5d066cc9e569a2899 /mi | |
parent | 4513f924a7065edbd267cf96837af94ce5a58a6f (diff) |
mi: Correct a miscall of abs() to instead call fabs()
miarc.c:1714:9: warning: using integer absolute value function
'abs' when
argument is of floating point type [-Wabsolute-value,Semantic Issue]
if (abs(parc->angle2) >= 360.0)
^
miarc.c:1714:9: note: use function 'fabs' instead [Semantic Issue]
if (abs(parc->angle2) >= 360.0)
^~~
fabs
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miarc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miarc.c b/mi/miarc.c index 5e854b329..2588ee48a 100644 --- a/mi/miarc.c +++ b/mi/miarc.c @@ -1711,7 +1711,7 @@ miGetArcPts(SppArcPtr parc, /* points to an arc */ y1 = y2; } /* adjust the last point */ - if (abs(parc->angle2) >= 360.0) + if (fabs(parc->angle2) >= 360.0) poly[cpt + i - 1] = poly[0]; else { poly[cpt + i - 1].x = (miDcos(st + et) * parc->width / 2.0 + xc); |