Huw Davies : gdi32: Use abs() on an integer argument to avoid a clang warning.
Module: wine Branch: master Commit: bb4ead4c7cc7b285b16bb3432785f23736e5fb67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb4ead4c7cc7b285b16bb34327... Author: Huw Davies <huw(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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,
participants (1)
-
Alexandre Julliard