imm: bug: SignExtend wasn't working for T with bit size > 32

This commit is contained in:
MerryMage 2018-01-09 21:22:17 +00:00
parent 10c60dda97
commit 9e27e4d250

View file

@ -35,7 +35,7 @@ public:
template <typename T = s32>
T SignExtend() const {
static_assert(Common::BitSize<T>() >= bit_size);
return static_cast<T>(Common::SignExtend<bit_size>(value));
return Common::SignExtend<bit_size, T>(value);
}
template <size_t bit>