Huw Davies : gdi32: Use abs() on an integer argument to avoid a clang warning.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 12 10:20:47 CDT 2016
Module: wine
Branch: master
Commit: bb4ead4c7cc7b285b16bb3432785f23736e5fb67
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb4ead4c7cc7b285b16bb3432785f23736e5fb67
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Apr 12 12:33:13 2016 +0100
gdi32: Use abs() on an integer argument to avoid a clang warning.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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,
More information about the wine-cvs
mailing list