Skip to content

Commit

Permalink
Fix division edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
xperia64 committed Aug 24, 2019
1 parent 626a9c1 commit 6c7c037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NDS.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 6c7c037

Please sign in to comment.