From bcb0d42d7a2a9a76c2d52fa75f1f57447f2aab3c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Dec 2019 02:36:07 +0100 Subject: [PATCH] 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. --- src/common/imagbmp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index c478f0ccff..7bc9bee950 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -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 )