d += cc;
for (l += 6; l >= 8; lsb = !lsb)
{
- c = (d >> (l -= 8)) % 256;
+ c = (unsigned char)((d >> (l -= 8)) % 256);
if (lsb)
{
if (buf)
}
else
if (buf)
- *buf = c << 8;
+ *buf = (wchar_t)(c << 8);
}
}
if (*psz == '-')
len++;
}
#ifndef WC_UTF16
- else if (((wxUint16)cc) > 0xffff)
+ else if (((wxUint32)cc) > 0xffff)
{
// no surrogate pair generation (yet?)
return (size_t)-1;