diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index f6dc5a9096..eafa9af40f 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -648,7 +648,7 @@ HBITMAP wxLoadBMP(const wxString& filename) pBmpInfo->bmiHeader.biClrUsed : 1 << pBmpInfo->bmiHeader.biBitCount; if (nColors < 1 || file.Read(pBmpInfo->bmiColors, nColors * sizeof(RGBQUAD)) - == nColors * sizeof(RGBQUAD)) { + == (ssize_t)(nColors * sizeof(RGBQUAD))) { // So how big the bitmap surface is. int nBitsSize = BmpFileHdr.bfSize - BmpFileHdr.bfOffBits;