Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
599132d33a
commit
4dca492943
@ -648,7 +648,7 @@ HBITMAP wxLoadBMP(const wxString& filename)
|
|||||||
pBmpInfo->bmiHeader.biClrUsed : 1 << pBmpInfo->bmiHeader.biBitCount;
|
pBmpInfo->bmiHeader.biClrUsed : 1 << pBmpInfo->bmiHeader.biBitCount;
|
||||||
if (nColors < 1
|
if (nColors < 1
|
||||||
|| file.Read(pBmpInfo->bmiColors, nColors * sizeof(RGBQUAD))
|
|| file.Read(pBmpInfo->bmiColors, nColors * sizeof(RGBQUAD))
|
||||||
== nColors * sizeof(RGBQUAD)) {
|
== (ssize_t)(nColors * sizeof(RGBQUAD))) {
|
||||||
|
|
||||||
// So how big the bitmap surface is.
|
// So how big the bitmap surface is.
|
||||||
int nBitsSize = BmpFileHdr.bfSize - BmpFileHdr.bfOffBits;
|
int nBitsSize = BmpFileHdr.bfSize - BmpFileHdr.bfOffBits;
|
||||||
|
Loading…
Reference in New Issue
Block a user