Fix warning

This commit is contained in:
Wojtek Figat
2023-07-03 22:13:13 +02:00
parent 5f756a6ceb
commit 9f7ae5bb58

View File

@@ -182,7 +182,7 @@ const char* StringUtils::Find(const char* str, const char* toFind)
void StringUtils::ConvertANSI2UTF16(const char* from, Char* to, int32 fromLength, int32& toLength)
{
if (fromLength)
toLength = mbstowcs(to, from, fromLength);
toLength = (int32)mbstowcs(to, from, fromLength);
else
toLength = 0;
}