X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ce5a3a853f2eaa7fe58e494aa0605918531ff3b..068993c7efdb9020c5752f29b62ed5090f4caac2:/src/common/imagbmp.cpp diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index b4e8208c47..6e4168e0f0 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -278,7 +278,7 @@ bool wxBMPHandler::SaveDib(wxImage *image, for ( int i = 0; i < palette_size; i++ ) { // if 1BPP_BW then the value should be either 0 or 255 - wxUint8 c = (i > 0) && (format == wxBMP_1BPP_BW) ? 255 : i; + wxUint8 c = (wxUint8)((i > 0) && (format == wxBMP_1BPP_BW) ? 255 : i); rgbquad[i*4] = rgbquad[i*4+1] =