]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/image.cpp
updated license info: Remstar gace permission to change it to wxWindows License with...
[wxWidgets.git] / 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;