summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/math/BigInteger.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/math/BigInteger.java')
-rw-r--r--libjava/classpath/java/math/BigInteger.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/libjava/classpath/java/math/BigInteger.java b/libjava/classpath/java/math/BigInteger.java
index c897d8bf48d..8d174d084f2 100644
--- a/libjava/classpath/java/math/BigInteger.java
+++ b/libjava/classpath/java/math/BigInteger.java
@@ -573,7 +573,7 @@ public class BigInteger extends Number implements Comparable<BigInteger>
long y_ext = y.words[i - 1] < 0 ? 0xffffffffL : 0;
for (; i < x.ival; i++)
{
- carry += ((long) x.words[i] & 0xffffffffL) + y_ext;;
+ carry += ((long) x.words[i] & 0xffffffffL) + y_ext;
result.words[i] = (int) carry;
carry >>>= 32;
}
@@ -1912,8 +1912,7 @@ public class BigInteger extends Number implements Comparable<BigInteger>
private static void setBitOp(BigInteger result, int op,
BigInteger x, BigInteger y)
{
- if (y.words == null) ;
- else if (x.words == null || x.ival < y.ival)
+ if ((y.words != null) && (x.words == null || x.ival < y.ival))
{
BigInteger temp = x; x = y; y = temp;
op = swappedOp(op);
OpenPOWER on IntegriCloud