Fix the division overflow.
Passing IntMath test.
Change-Id: I807858515a802f2efaa4802460e5f507eb944772
diff --git a/test/IntMath/IntMath.java b/test/IntMath/IntMath.java
index 7491e0b..c1cb976 100644
--- a/test/IntMath/IntMath.java
+++ b/test/IntMath/IntMath.java
@@ -338,6 +338,7 @@
int negOne = -results[5];
int plusOne = 1;
int result = (((minInt + plusOne) - plusOne) / negOne) / negOne;
+ int shouldBeZero = minInt % negOne;
if (result != minInt) { return 1;};
if (results[0] != 69997) { return 2;};
@@ -350,6 +351,7 @@
if (results[7] != -3) { return 9;};
if (results[8] != -70003) { return 10;};
if (results[9] != 70000) { return 11;};
+ if (shouldBeZero != 0) { return 12;};
return 0;
}