fix PIChar

This commit is contained in:
Andrey
2022-03-25 12:35:02 +03:00
parent 7a0adf5e28
commit 8bb1af8d2a
2 changed files with 4 additions and 4 deletions

View File

@@ -347,7 +347,7 @@ PIChar PIChar::toUpper() const {
return PIChar(wc);
# endif
#endif
return PIChar(towupper(ch));
return PIChar((ushort)towupper(ch));
}
@@ -365,7 +365,7 @@ PIChar PIChar::toLower() const {
return PIChar(wc);
# endif
#endif
return PIChar(towlower(ch));
return PIChar((ushort)towlower(ch));
}

View File

@@ -126,8 +126,8 @@ public:
const wchar_t * toWCharPtr() const;
//! \~english Returns as <tt>"char * "</tt> string
//! \~russian Возвращает символ как указатель на <tt>"char * "</tt>
//! \~english Returns as `char *` string
//! \~russian Возвращает символ как указатель на `char *`
const char * toCharPtr() const;
wchar_t toWChar() const;