MacroInterpreter: Avoid left shifting negative values.
The branch target is signed, so multiply by 4 instead of left shifting by 2
This commit is contained in:
parent
e119e17d18
commit
8191273a3d
2 changed files with 6 additions and 2 deletions
|
@ -91,6 +91,10 @@ private:
|
|||
u32 GetBitfieldMask() const {
|
||||
return (1 << bf_size) - 1;
|
||||
}
|
||||
|
||||
s32 GetBranchTarget() const {
|
||||
return static_cast<s32>(immediate * sizeof(u32));
|
||||
}
|
||||
};
|
||||
|
||||
union MethodAddress {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue