[warnings] fix integer narrowing

This commit is contained in:
akallabeth 2024-10-03 13:15:25 +02:00
parent 08afc250a3
commit cdb25ea11b
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 2 additions and 1 deletions

View File

@ -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;