summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CryptoPP/src/utf8.cpp')
-rw-r--r--plugins/CryptoPP/src/utf8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CryptoPP/src/utf8.cpp b/plugins/CryptoPP/src/utf8.cpp
index 6a0a6e21a7..03bcce1f36 100644
--- a/plugins/CryptoPP/src/utf8.cpp
+++ b/plugins/CryptoPP/src/utf8.cpp
@@ -27,7 +27,7 @@ LPSTR __cdecl utf8encode(LPCWSTR str)
i = 0;
for (w = wszTemp; *w; w++) {
if (*w < 0x0080)
- szOut[i++] = (BYTE)*w;
+ szOut[i++] = (uint8_t)*w;
else if (*w < 0x0800) {
szOut[i++] = 0xc0 | (((*w) >> 6) & 0x3f);
szOut[i++] = 0x80 | ((*w) & 0x3f);