From 9cf58b6979fdccf6fb9e32858d0b0cd357e75b72 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 20 Jul 2007 17:23:30 +0000 Subject: [PATCH] use the right cast to fix warning, rather than just suppressing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/base64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/base64.cpp b/src/common/base64.cpp index 2fb58c5b29..eeafaa40f4 100644 --- a/src/common/base64.cpp +++ b/src/common/base64.cpp @@ -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: -- 2.45.2