]> git.saurik.com Git - wxWidgets.git/commitdiff
removed warning-hiding cast, previous revision removed the warning
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Aug 2004 15:42:56 +0000 (15:42 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Aug 2004 15:42:56 +0000 (15:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index b55fd180703def1bdc25a225abbd9039aa7be3fe..469260fb478d2a04fbd4a4ea3e2fcfd8fe488725 100644 (file)
@@ -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;