diff --git a/Source/Engine/Platform/Win32/Win32StringUtils.cpp b/Source/Engine/Platform/Win32/Win32StringUtils.cpp index 2a9bcf174..ea1eb8fe9 100644 --- a/Source/Engine/Platform/Win32/Win32StringUtils.cpp +++ b/Source/Engine/Platform/Win32/Win32StringUtils.cpp @@ -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; }