From bdf075355cef6100d47e9c60d62d79d2b78de258 Mon Sep 17 00:00:00 2001 From: ephphatha Date: Wed, 30 Mar 2022 20:58:54 +1100 Subject: [PATCH] Address c4244 warning in PointerOrValue This triggers a bunch of warnings in MSVC because the conversion is potentially truncating, despite never being an issue in practice... --- Source/utils/pointer_value_union.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/utils/pointer_value_union.hpp b/Source/utils/pointer_value_union.hpp index 4ad6f5740..57b093de2 100644 --- a/Source/utils/pointer_value_union.hpp +++ b/Source/utils/pointer_value_union.hpp @@ -40,7 +40,7 @@ public: [[nodiscard]] T AsValue() const { - return repr_ >> 1; + return static_cast(repr_ >> 1); } private: