X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79c78d4284afd3ca726edf16763d248dc6253386..9386cb75e34acb49cd9fac945e09cf002f22db2d:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 6f1ce18020..50571277e7 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -436,7 +436,7 @@ size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const 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) @@ -445,7 +445,7 @@ size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const } else if (buf) - *buf = c << 8; + *buf = (wchar_t)(c << 8); } } if (*psz == '-')