* BigInteger.java: fix right shifts by nonzero multiples of 32.
From-SVN: r44963
This commit is contained in:
parent
ff0a63e8e4
commit
552bf3d6af
1 changed files with 1 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ public class BigInteger extends Number implements Comparable
|
||||||
MPN.rshift0 (words, x.words, word_count, d_len, count);
|
MPN.rshift0 (words, x.words, word_count, d_len, count);
|
||||||
ival = d_len;
|
ival = d_len;
|
||||||
if (neg)
|
if (neg)
|
||||||
words[d_len-1] |= -1 << (32 - count);
|
words[d_len-1] |= -2 << (31 - count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue