From: Włodzimierz Skiba Date: Fri, 20 Aug 2004 11:53:52 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e567515efdc65f853687f6bfc685cd3aeca14f77 Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/image.cpp b/src/common/image.cpp index 03a7d4fb9f..a01eece6e5 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -961,7 +961,7 @@ bool wxImage::ConvertAlphaToMask(unsigned threshold) { for (size_t x = 0; x < w; x++, imgdata += 3, alphadata++) { - if (*alphadata < threshold) + if ((unsigned)(*alphadata) < threshold) { imgdata[0] = mr; imgdata[1] = mg;