Fix division edge case

This commit is contained in:
xperia64 2019-08-24 11:52:24 -04:00
parent 626a9c1385
commit 6c7c037b20
1 changed files with 1 additions and 1 deletions

View File

@ -1416,7 +1416,7 @@ void DivDone(u32 param)
if (den == 0)
{
DivQuotient[0] = (num<0) ? 1:-1;
DivQuotient[1] = (num<0) ? -1:1;
DivQuotient[1] = (num<0) ? -1:0;
*(s64*)&DivRemainder[0] = num;
}
else if (num == -0x80000000 && den == -1)