a32_interface/a64_interface: Change reinterpret_casts to static_casts in GetCurrentBlock thunks

It's well-defined to static_cast a void* to its proper type.
This commit is contained in:
Lioncash 2018-05-01 12:34:53 -04:00 committed by MerryMage
parent e71612d394
commit edd0b5c8c7
2 changed files with 3 additions and 3 deletions

View file

@ -107,8 +107,8 @@ struct Jit::Impl {
private:
Jit* jit_interface;
static CodePtr GetCurrentBlock(void *this_voidptr) {
Jit::Impl& this_ = *reinterpret_cast<Jit::Impl*>(this_voidptr);
static CodePtr GetCurrentBlock(void* this_voidptr) {
Jit::Impl& this_ = *static_cast<Jit::Impl*>(this_voidptr);
A32JitState& jit_state = this_.jit_state;
u32 pc = jit_state.Reg[15];

View file

@ -177,7 +177,7 @@ public:
private:
static CodePtr GetCurrentBlockThunk(void* thisptr) {
Jit::Impl* this_ = reinterpret_cast<Jit::Impl*>(thisptr);
Jit::Impl* this_ = static_cast<Jit::Impl*>(thisptr);
return this_->GetCurrentBlock();
}