]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 20 Aug 2004 11:53:52 +0000 (11:53 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 20 Aug 2004 11:53:52 +0000 (11:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index 03a7d4fb9f76fa952ea9a187135d8a7254225709..a01eece6e5ee534d6458d0775030b61b7a7eb39c 100644 (file)
@@ -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;