projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff0a63e
)
* BigInteger.java: fix right shifts by nonzero multiples of 32.
author
Hans Boehm
<hboehm@gcc.gnu.org>
Fri, 17 Aug 2001 16:28:32 +0000
(16:28 +0000)
committer
Hans Boehm
<hboehm@gcc.gnu.org>
Fri, 17 Aug 2001 16:28:32 +0000
(16:28 +0000)
From-SVN: r44963
libjava/java/math/BigInteger.java
patch
|
blob
|
history
diff --git
a/libjava/java/math/BigInteger.java
b/libjava/java/math/BigInteger.java
index 3a99de993aa787aecce8041da10bc4d9135d6768..e74c5e1c8ea999cec85b77af3d6f50bef7869183 100644
(file)
--- 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);
}
}
}