mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Merge pull request #4419 from degasus/master
Jit64: Fix a few trivial PIE issues.
This commit is contained in:
commit
d64c9dd5c9
11 changed files with 36 additions and 29 deletions
|
@ -324,7 +324,7 @@ inline OpArg ImmPtr(const void* imm)
|
|||
return Imm64((u64)imm);
|
||||
}
|
||||
|
||||
inline u32 PtrOffset(const void* ptr, const void* base)
|
||||
inline u32 PtrOffset(const void* ptr, const void* base = nullptr)
|
||||
{
|
||||
s64 distance = (s64)ptr - (s64)base;
|
||||
if (distance >= 0x80000000LL || distance < -0x80000000LL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue