Charles Davis : gdi32: Declare our intent explicitly to the compiler.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 17 11:15:04 CST 2016


Module: wine
Branch: master
Commit: c94336f381f15a30905c0601c91df9b37934c683
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c94336f381f15a30905c0601c91df9b37934c683

Author: Charles Davis <cdavis5x at gmail.com>
Date:   Wed Feb 17 02:27:04 2016 -0700

gdi32: Declare our intent explicitly to the compiler.

Clang warns about this abs(3) call because the argument is of unsigned
type.

Signed-off-by: Charles Davis <cdavis5x at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/pen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/pen.c b/dlls/gdi32/pen.c
index 2ae2f2b..cf4b080 100644
--- a/dlls/gdi32/pen.c
+++ b/dlls/gdi32/pen.c
@@ -195,7 +195,7 @@ HPEN WINAPI ExtCreatePen( DWORD style, DWORD width,
     if (logbrush.lbStyle == BS_DIBPATTERN) logbrush.lbStyle = BS_DIBPATTERNPT;
 
     penPtr->logpen.elpPenStyle = style;
-    penPtr->logpen.elpWidth = abs(width);
+    penPtr->logpen.elpWidth = abs((int)width);
     penPtr->logpen.elpBrushStyle = logbrush.lbStyle;
     penPtr->logpen.elpColor = logbrush.lbColor;
     penPtr->logpen.elpHatch = brush->lbHatch;




More information about the wine-cvs mailing list