From 646c4aebb22c4b60f71b7c30c2eedfa6328888f4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 25 Jul 2003 12:14:08 +0000 Subject: [PATCH] warning fixes (closes 767152) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/image.cpp b/src/common/image.cpp index 5192bc06d8..d9f07d30b2 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -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); } } }