]> git.saurik.com Git - wxWidgets.git/commitdiff
use the right cast to fix warning, rather than just suppressing it
authorPaul Cornett <paulcor@bullseye.com>
Fri, 20 Jul 2007 17:23:30 +0000 (17:23 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 20 Jul 2007 17:23:30 +0000 (17:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/base64.cpp

index 2fb58c5b29e9d3e12e9b94fc3826caaadd7100e2..eeafaa40f40ef06b526bd18239e3228383dcddb5 100644 (file)
@@ -118,7 +118,7 @@ wxBase64Decode(void *dst_, size_t dstLen,
     const char *p;
     for ( p = src; srcLen; p++, srcLen-- )
     {
-        const unsigned char c = decode[(int)*p]; // cast to suppress warnings
+        const unsigned char c = decode[wx_static_cast(unsigned char, *p)];
         switch ( c )
         {
             case WSP: