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:
@@ -88,7 +88,7 @@ wxBase64Decode(void *dst_, size_t dstLen,
|
|||||||
PAD
|
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,
|
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,
|
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;
|
const char *p;
|
||||||
for ( p = src; srcLen; p++, srcLen-- )
|
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 )
|
switch ( c )
|
||||||
{
|
{
|
||||||
case WSP:
|
case WSP:
|
||||||
|
Reference in New Issue
Block a user