gdi32: Use abs() on an integer argument to avoid a clang warning.
Huw Davies
huw at codeweavers.com
Tue Apr 12 06:33:13 CDT 2016
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/gdi32/painting.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c
index f978001..32b6183 100644
--- a/dlls/gdi32/painting.c
+++ b/dlls/gdi32/painting.c
@@ -303,8 +303,8 @@ BOOL WINAPI ArcTo( HDC hdc,
INT xstart, INT ystart,
INT xend, INT yend )
{
- double width = fabs(right-left),
- height = fabs(bottom-top),
+ double width = abs( right - left ),
+ height = abs( bottom - top ),
xradius = width/2,
yradius = height/2,
xcenter = right > left ? left+xradius : right+xradius,
--
2.8.0
More information about the wine-patches
mailing list