Commit 552bf3d6 by Hans Boehm

* BigInteger.java: fix right shifts by nonzero multiples of 32.

From-SVN: r44963
parent ff0a63e8
......@@ -1398,7 +1398,7 @@ public class BigInteger extends Number implements Comparable
MPN.rshift0 (words, x.words, word_count, d_len, count);
ival = d_len;
if (neg)
words[d_len-1] |= -1 << (32 - count);
words[d_len-1] |= -2 << (31 - count);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment