X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4db03d266bba0da0fa2d96c408fb3bb697b96128..c2c87924e7e3906b8cf1f93ebbd362eab17f6857:/src/common/base64.cpp diff --git a/src/common/base64.cpp b/src/common/base64.cpp index 89025b0b56..eeafaa40f4 100644 --- a/src/common/base64.cpp +++ b/src/common/base64.cpp @@ -88,7 +88,7 @@ wxBase64Decode(void *dst_, size_t dstLen, PAD }; - static const char decode[256] = + static const unsigned char decode[256] = { WSP,INV,INV,INV,INV,INV,INV,INV,INV,WSP,WSP,INV,WSP,WSP,INV,INV, INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV,INV, @@ -118,7 +118,7 @@ wxBase64Decode(void *dst_, size_t dstLen, const char *p; for ( p = src; srcLen; p++, srcLen-- ) { - const char c = decode[(int)*p]; // cast just to suppress warnings + const unsigned char c = decode[wx_static_cast(unsigned char, *p)]; switch ( c ) { case WSP: