imm: Suppress MSVC warning C4244: value will never be truncated

This commit is contained in:
MerryMage 2018-01-12 17:18:07 +00:00
parent 0c3a5adf74
commit a1dfa01515

View file

@ -30,7 +30,7 @@ public:
template <typename T = u32> template <typename T = u32>
T ZeroExtend() const { T ZeroExtend() const {
static_assert(Common::BitSize<T>() >= bit_size); static_assert(Common::BitSize<T>() >= bit_size);
return value; return static_cast<T>(value);
} }
template <typename T = s32> template <typename T = s32>