mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-12 01:50:01 +01:00
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>
|
template <typename T = s32>
|
||||||
T SignExtend() const {
|
T SignExtend() const {
|
||||||
static_assert(Common::BitSize<T>() >= bit_size);
|
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>
|
template <size_t bit>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user