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:
parent
e71612d394
commit
edd0b5c8c7
2 changed files with 3 additions and 3 deletions
|
@ -107,8 +107,8 @@ struct Jit::Impl {
|
||||||
private:
|
private:
|
||||||
Jit* jit_interface;
|
Jit* jit_interface;
|
||||||
|
|
||||||
static CodePtr GetCurrentBlock(void *this_voidptr) {
|
static CodePtr GetCurrentBlock(void* this_voidptr) {
|
||||||
Jit::Impl& this_ = *reinterpret_cast<Jit::Impl*>(this_voidptr);
|
Jit::Impl& this_ = *static_cast<Jit::Impl*>(this_voidptr);
|
||||||
A32JitState& jit_state = this_.jit_state;
|
A32JitState& jit_state = this_.jit_state;
|
||||||
|
|
||||||
u32 pc = jit_state.Reg[15];
|
u32 pc = jit_state.Reg[15];
|
||||||
|
|
|
@ -177,7 +177,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static CodePtr GetCurrentBlockThunk(void* thisptr) {
|
static CodePtr GetCurrentBlockThunk(void* thisptr) {
|
||||||
Jit::Impl* this_ = reinterpret_cast<Jit::Impl*>(thisptr);
|
Jit::Impl* this_ = static_cast<Jit::Impl*>(thisptr);
|
||||||
return this_->GetCurrentBlock();
|
return this_->GetCurrentBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue