diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2015-10-14 15:13:35 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-19 11:49:53 -0400 |
commit | 9f0fcd14b52f8481cbb3b3b9c6e06f64ff003cc8 (patch) | |
tree | 93eea16cda37583f97fc451c07663daa5cc3c2ae /randr | |
parent | 610dd8a58a75bb6a5b7d7abbae476d1cc4be519e (diff) |
randr: Correct a miscall of abs() to instead call fabs()
rrtransform.c:124:22: warning: using integer absolute value function 'abs' when
argument is of floating point type [-Wabsolute-value,Semantic Issue]
if ((v = abs(f_transform->m[j][i])) > max)
^
rrtransform.c:124:22: note: use function 'fabs' instead [Semantic Issue]
if ((v = abs(f_transform->m[j][i])) > max)
^~~
fabs
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrtransform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrtransform.c b/randr/rrtransform.c index 6137f8587..26b0649c9 100644 --- a/randr/rrtransform.c +++ b/randr/rrtransform.c @@ -121,7 +121,7 @@ RRTransformRescale(struct pixman_f_transform *f_transform, double limit) for (j = 0; j < 3; j++) for (i = 0; i < 3; i++) - if ((v = abs(f_transform->m[j][i])) > max) + if ((v = fabs(f_transform->m[j][i])) > max) max = v; scale = limit / max; for (j = 0; j < 3; j++) |