Browse Source

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...
pull/4262/head^2
ephphatha 4 years ago committed by Gleb Mazovetskiy
parent
commit
bdf075355c
  1. 2
      Source/utils/pointer_value_union.hpp

2
Source/utils/pointer_value_union.hpp

@ -40,7 +40,7 @@ public:
[[nodiscard]] T AsValue() const [[nodiscard]] T AsValue() const
{ {
return repr_ >> 1; return static_cast<T>(repr_ >> 1);
} }
private: private:

Loading…
Cancel
Save