From e567515efdc65f853687f6bfc685cd3aeca14f77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 20 Aug 2004 11:53:52 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2