diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 1999-08-11 21:30:31 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 1999-08-11 22:30:31 +0100 |
commit | 48ff99d10db63adaefda390e28e7d7cbadb0b1cd (patch) | |
tree | 6ae17c42742c29764ed9321f3cd8fdfeae7c1443 /libjava | |
parent | c6a9738c04ca9e33fa1f6d22f566dbe3a996cf7d (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/BitSet.java | 6 |
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 () |