Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Fix Bignum#divmod bug.
  • Loading branch information
chrisseaton committed Nov 30, 2014
1 parent d7cf496 commit 8bdf8e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -128,7 +128,7 @@ private RubyArray divMod(BigInteger a, BigInteger b) {
throw new ArithmeticException("divide by zero");
}

final BigInteger[] bigIntegerResults = a.divideAndRemainder(a);
final BigInteger[] bigIntegerResults = a.divideAndRemainder(b);

if ((a.signum() * b.signum()) == -1 && bigIntegerResults[1].signum() != 0) {
bigIntegerFixnumProfile.enter();
Expand Down

0 comments on commit 8bdf8e2

Please sign in to comment.