use unsigned char to avoid MSVC warnings about cast truncations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-07-12 22:04:17 +00:00
parent 1032be03d5
commit d05005c11f

View File

@@ -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[(int)*p]; // cast to suppress warnings
switch ( c )
{
case WSP: