Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9738 from JosJuice/interpreter-fctiwx
Interpreter: Fix fctiwx rounding
  • Loading branch information
lioncash committed May 22, 2021
2 parents 40a4715 + 68a5fc5 commit 031bef0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -73,7 +73,8 @@ void ConvertToInteger(UGeckoInstruction inst, RoundingMode rounding_mode)
const double t = b + 0.5;
i = static_cast<s32>(t);

if (t - i < 0 || (t - i == 0 && b > 0))
// Ties to even
if (t - i < 0 || (t - i == 0 && (i & 1)))
{
i--;
}
Expand Down

0 comments on commit 031bef0

Please sign in to comment.