From 8159c03526c6d470af52256c00eb43ce07d30892 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 21 Mar 2024 11:13:18 +0100 Subject: [PATCH] fix a build issue inside FSGArrayUtils::FromStdVector introduced by newer msvc updates due to stricter implicit uint64 to int32 conversions --- CHANGELOG.md | 1 + Source/SenseGloveUtils/Public/SGUtils/SGArrayUtils.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 520cd366..4675a380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This is the second major release of the SenseGlove Unreal Engine Plugin adding s - Revamped the way we do FVector <-> SGVect3D, FQuat <-> SGQuat, and SenseGlove <-> Unreal Engine angles conversions in order to properly translate between the SenseGlove and Unreal Engine coordinate systems. - Allow the C++ compiler the opportunity to perform RVO/NRVO if applicable. - Fix the modules' order inside the .uplugin file. +- Fix a build issue inside FSGArrayUtils::FromStdVector introduced by newer MVSC updates due to stricter implicit uint64 to int32 conversions. - Fix changelog formatting. ### Changed diff --git a/Source/SenseGloveUtils/Public/SGUtils/SGArrayUtils.h b/Source/SenseGloveUtils/Public/SGUtils/SGArrayUtils.h index 2131045f..37a14153 100644 --- a/Source/SenseGloveUtils/Public/SGUtils/SGArrayUtils.h +++ b/Source/SenseGloveUtils/Public/SGUtils/SGArrayUtils.h @@ -50,7 +50,7 @@ public: template static FORCEINLINE TArray FromStdVector(const std::vector& Vector) { - const TArray Array{&Vector[0], Vector.size()}; + const TArray Array{&Vector[0], StaticCast::SizeType>(Vector.size())}; return Array; }