mirror of https://github.com/FreeRDP/FreeRDP
[warnings] fix integer narrowing
This commit is contained in:
parent
08afc250a3
commit
cdb25ea11b
|
@ -52,7 +52,8 @@ HGDI_PEN gdi_CreatePen(UINT32 fnPenStyle, UINT32 nWidth, UINT32 crColor, UINT32
|
|||
hPen->objectType = GDIOBJECT_PEN;
|
||||
hPen->style = fnPenStyle;
|
||||
hPen->color = crColor;
|
||||
hPen->width = nWidth;
|
||||
WINPR_ASSERT(nWidth <= INT32_MAX);
|
||||
hPen->width = (int)nWidth;
|
||||
hPen->format = format;
|
||||
hPen->palette = palette;
|
||||
return hPen;
|
||||
|
|
Loading…
Reference in New Issue