PIString and PIChar fixes 4

This commit is contained in:
Andrey
2022-03-25 15:10:29 +03:00
parent 7dee8f6313
commit 4c7df57e66
3 changed files with 27 additions and 28 deletions

View File

@@ -339,7 +339,7 @@ PIChar PIChar::toUpper() const {
UChar c(0);
UErrorCode e((UErrorCode)0);
u_strToUpper(&c, 1, (const UChar*)(&ch), 1, 0, &e);
return PIChar(c);
return PIChar((ushort)c);
#else
# ifdef WINDOWS
ushort wc = 0;
@@ -357,7 +357,7 @@ PIChar PIChar::toLower() const {
UChar c(0);
UErrorCode e((UErrorCode)0);
u_strToLower(&c, 1, (const UChar*)(&ch), 1, 0, &e);
return PIChar(c);
return PIChar((ushort)c);
#else
# ifdef WINDOWS
ushort wc = 0;