From 4b08cd3fd7bfa214313036290270a898b936cbf7 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 16 Feb 2023 20:08:53 +0100 Subject: [PATCH] Fix compilation warning --- Source/Engine/Platform/Base/StringUtilsBase.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Engine/Platform/Base/StringUtilsBase.cpp b/Source/Engine/Platform/Base/StringUtilsBase.cpp index d005f8a04..ce895bfa4 100644 --- a/Source/Engine/Platform/Base/StringUtilsBase.cpp +++ b/Source/Engine/Platform/Base/StringUtilsBase.cpp @@ -537,8 +537,7 @@ String StringUtils::GetZZString(const Char* str) if (*end == '\0') end++; } - const int len = end - str; - return String(str, len); + return String(str, (int32)(end - str)); } #undef STRING_UTILS_ITOSTR_BUFFER_SIZE