mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #9738 from JosJuice/interpreter-fctiwx
Interpreter: Fix fctiwx rounding
This commit is contained in:
commit
031bef0ad9
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user