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
This commit is contained in:
parent
07b1232d2c
commit
9cf58b6979
@ -118,7 +118,7 @@ wxBase64Decode(void *dst_, size_t dstLen,
|
|||||||
const char *p;
|
const char *p;
|
||||||
for ( p = src; srcLen; p++, srcLen-- )
|
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 )
|
switch ( c )
|
||||||
{
|
{
|
||||||
case WSP:
|
case WSP:
|
||||||
|
Loading…
Reference in New Issue
Block a user