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@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
61d1c95ea4
commit
c94336f381
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue