aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>1999-08-11 21:30:31 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>1999-08-11 22:30:31 +0100
commit48ff99d10db63adaefda390e28e7d7cbadb0b1cd (patch)
tree6ae17c42742c29764ed9321f3cd8fdfeae7c1443 /libjava
parentc6a9738c04ca9e33fa1f6d22f566dbe3a996cf7d (diff)
downloadgcc-48ff99d10db63adaefda390e28e7d7cbadb0b1cd.zip
gcc-48ff99d10db63adaefda390e28e7d7cbadb0b1cd.tar.gz
gcc-48ff99d10db63adaefda390e28e7d7cbadb0b1cd.tar.bz2
BitSet.java (set, [...]): specify "1" constant as long.
* java/util/BitSet.java (set, clear, hashCode): specify "1" constant as long. From-SVN: r28680
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/util/BitSet.java6
2 files changed, 8 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 9b04792..adc49cd 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
+ as long.
+
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile: Rebuilt.
diff --git a/libjava/java/util/BitSet.java b/libjava/java/util/BitSet.java
index e588695..cfbe8a6 100644
--- a/libjava/java/util/BitSet.java
+++ b/libjava/java/util/BitSet.java
@@ -56,7 +56,7 @@ public final class BitSet implements Cloneable, Serializable
int bit = pos % 64;
int offset = pos / 64;
ensure (offset);
- bits[offset] &= ~ (1 << bit);
+ bits[offset] &= ~ (1L << bit);
}
public Object clone ()
@@ -97,7 +97,7 @@ public final class BitSet implements Cloneable, Serializable
if (offset >= bits.length)
return false;
- return (bits[offset] & (1 << bit)) == 0 ? false : true;
+ return (bits[offset] & (1L << bit)) == 0 ? false : true;
}
public int hashCode ()
@@ -125,7 +125,7 @@ public final class BitSet implements Cloneable, Serializable
int bit = pos % 64;
int offset = pos / 64;
ensure (offset);
- bits[offset] |= 1 << bit;
+ bits[offset] |= 1L << bit;
}
public int size ()