* java/util/BitSet.java (set, clear, hashCode): specify "1" constant
as long.
From-SVN: r28680
+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.
int bit = pos % 64;
int offset = pos / 64;
ensure (offset);
- bits[offset] &= ~ (1 << bit);
+ bits[offset] &= ~ (1L << bit);
}
public Object clone ()
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 ()
int bit = pos % 64;
int offset = pos / 64;
ensure (offset);
- bits[offset] |= 1 << bit;
+ bits[offset] |= 1L << bit;
}
public int size ()