From 9f0fcd14b52f8481cbb3b3b9c6e06f64ff003cc8 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 14 Oct 2015 15:13:35 -0700 Subject: 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 Reviewed-by: Alan Coopersmith --- randr/rrtransform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randr') 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++) -- cgit v1.2.3