X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f2b21e474d7f7c07fd97306d2f6d5b1f05d2844..3e2656801d825761f55ea9b0b766802c6cd32f1d:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index b55fd18070..469260fb47 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -961,7 +961,7 @@ bool wxImage::ConvertAlphaToMask(unsigned char threshold) { for (int x = 0; x < w; x++, imgdata += 3, alphadata++) { - if ((unsigned)(*alphadata) < threshold) + if (*alphadata < threshold) { imgdata[0] = mr; imgdata[1] = mg;