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,
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: