diff options
author | hboehm <hboehm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-17 16:28:32 +0000 |
---|---|---|
committer | hboehm <hboehm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-17 16:28:32 +0000 |
commit | 4e141f35458b612b492f1f4dd6fb28d4924e7828 (patch) | |
tree | daef603d691af492cb244054ea3bebd1c8605090 /libjava/java/math | |
parent | 8e920924cc90578297a06bb8c6e29d4c1c8275b6 (diff) | |
download | gcc-4e141f35458b612b492f1f4dd6fb28d4924e7828.tar.gz |
* BigInteger.java: fix right shifts by nonzero multiples of 32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/math')
-rw-r--r-- | libjava/java/math/BigInteger.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/math/BigInteger.java b/libjava/java/math/BigInteger.java index 3a99de993aa..e74c5e1c8ea 100644 --- a/libjava/java/math/BigInteger.java +++ b/libjava/java/math/BigInteger.java @@ -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); } } } |