From 935e25ab7d70d8b0fc5c5729b1f172b2e2832746 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 5 Nov 2024 11:32:49 +0100 Subject: [PATCH] Fix compile warnings --- Source/Engine/Content/Assets/Animation.cpp | 2 +- Source/Engine/Core/LogContext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Content/Assets/Animation.cpp b/Source/Engine/Content/Assets/Animation.cpp index 261394441..6f8b23ec7 100644 --- a/Source/Engine/Content/Assets/Animation.cpp +++ b/Source/Engine/Content/Assets/Animation.cpp @@ -504,7 +504,7 @@ void Animation::GetReferences(Array& assets, Array& files) const writer.StartObject(); k.Value.Instance->Serialize(writer, nullptr); writer.EndObject(); - JsonAssetBase::GetReferences(StringAnsiView((char*)buffer.GetString(), buffer.GetSize()), assets); + JsonAssetBase::GetReferences(StringAnsiView((const char*)buffer.GetString(), (int32)buffer.GetSize()), assets); } } } diff --git a/Source/Engine/Core/LogContext.cpp b/Source/Engine/Core/LogContext.cpp index 6916fd7de..c7ed7ea2e 100644 --- a/Source/Engine/Core/LogContext.cpp +++ b/Source/Engine/Core/LogContext.cpp @@ -57,7 +57,7 @@ void LogContext::Print(LogType verbosity) LogContextData& context = stack.Ptr[index]; // Skip duplicates - if (index < stack.Count - 1 && stack.Ptr[stack.Count - 1] == context) + if (index < (int32)stack.Count - 1 && stack.Ptr[stack.Count - 1] == context) continue; // Build call hierarchy via indentation