From 9f7ae5bb58032e0339928dc589c4b2b18e44b1aa Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 3 Jul 2023 22:13:13 +0200 Subject: [PATCH] Fix warning --- Source/Engine/Platform/Win32/Win32StringUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }