]> git.saurik.com Git - wxWidgets.git/commitdiff
warning fixes (closes 767152)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Jul 2003 12:14:08 +0000 (12:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Jul 2003 12:14:08 +0000 (12:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index 5192bc06d82624615a223c22b73fd72852bd5a86..d9f07d30b224365dcf606b06f0382c54d9ca0d86 100644 (file)
@@ -303,9 +303,9 @@ wxImage wxImage::ShrinkBy( int xFactor , int yFactor ) const
             }
             else
             {
-                *(target_data++) = avgRed / counter ;
-                *(target_data++) = avgGreen / counter ;
-                *(target_data++) = avgBlue / counter ;
+                *(target_data++) = (unsigned char)(avgRed / counter);
+                *(target_data++) = (unsigned char)(avgGreen / counter);
+                *(target_data++) = (unsigned char)(avgBlue / counter);
             }
         }
     }