imm: bug: SignExtend wasn't working for T with bit size > 32
This commit is contained in:
parent
10c60dda97
commit
9e27e4d250
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user