aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-08-29 15:55:33 +0200
committerArisotura <thetotalworm@gmail.com>2019-08-29 15:55:33 +0200
commit210c1056b065a003f13506693da97f4af46fa1db (patch)
tree84a7c392e64d9eebd5a740f441821ff15a5d66f6 /src
parentfbad8b0f4393a41892c5da59d1ef62d0314a029b (diff)
parent16d5041da87f85022de3f9f44693c2b4ea54234e (diff)
Merge branch 'master' of https://github.com/Arisotura/melonDS
Diffstat (limited to 'src')
-rw-r--r--src/NDS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 991995d..ceeeb79 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -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)