Skip to content

Commit

Permalink
x86emitter: fix order of operations mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
TellowKrinkle committed Feb 3, 2021
1 parent 215e6dd commit bd4b9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/include/x86emitter/x86types.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class xRegisterInt : public xRegisterBase
/// Checks if mapping the ID directly would be a good idea
bool canMapIDTo(int otherSize) const
{
if ((otherSize == 1) == GetOperandSize() == 1)
if ((otherSize == 1) == (GetOperandSize() == 1))
return true;
return isIDSameInAllSizes();
}
Expand Down

0 comments on commit bd4b9c8

Please sign in to comment.