Fix harmless warning from the last commit

This is yet another fix related to recent wxBMPHandler changes: this one
is trivial, as it just avoids gcc signed/unsigned comparison warning,
but is still needed for the clean build.

See #18634.
This commit is contained in:
Vadim Zeitlin
2019-12-28 02:36:07 +01:00
parent ca065c5004
commit bcb0d42d7a

View File

@@ -1162,7 +1162,7 @@ bool wxBMPHandler::LoadDib(wxImage *image, wxInputStream& stream,
//
// Note: hardcode its size as struct BITMAPINFOHEADER is not defined on
// non-MSW platforms.
const size_t sizeBITMAPINFOHEADER = 40;
const wxInt32 sizeBITMAPINFOHEADER = 40;
if ( hdrSize > sizeBITMAPINFOHEADER )
{
if ( stream.SeekI(hdrSize - sizeBITMAPINFOHEADER, wxFromCurrent) == wxInvalidOffset )