From: Julian Smart <julian@anthemion.co.uk>
Date: Sun, 6 Feb 2000 15:05:46 +0000 (+0000)
Subject: Changed static_cast syntax not recogised by all compilers
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6f434e50413db23eea2963ff4c78e2d8691e0dd5

Changed static_cast syntax not recogised by all compilers


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/image.cpp b/src/common/image.cpp
index f73c76bfae..cbbf97b0bc 100644
--- a/src/common/image.cpp
+++ b/src/common/image.cpp
@@ -2846,7 +2846,7 @@ wxImage wxImage::Rotate(double angle, const wxPoint & centre_of_rotation, bool i
 	                    for (int i = 0; i < 3; i++)     // repeat calculation for R, G, and B
     	                {
         	                result_data[y][x].rgb[i] =
-            	                static_cast<unsigned char> ( (w1 * v1.rgb[i] + w2 * v2.rgb[i] +
+            	                (unsigned char) ( (w1 * v1.rgb[i] + w2 * v2.rgb[i] +
                 	                                         w3 * v3.rgb[i] + w4 * v4.rgb[i]) /
                     	                                     (w1 + w2 + w3 + w4) );
 	                    }