]> gcc.gnu.org Git - gcc.git/commitdiff
BitSet.java (set, [...]): specify "1" constant as long.
authorBryce McKinlay <bryce@albatross.co.nz>
Wed, 11 Aug 1999 21:30:31 +0000 (21:30 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Wed, 11 Aug 1999 21:30:31 +0000 (22:30 +0100)
        * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
        as long.

From-SVN: r28680

libjava/ChangeLog
libjava/java/util/BitSet.java

index 9b04792a1e58230ef41322ce6fba9384fe065813..adc49cd2aad466f3bc16ee1adbf6cab44b37f4eb 100644 (file)
@@ -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.
index e5886951714f301d6f3efbb04192c3eab084d51e..cfbe8a6fe0cfc3f941c42858a13b97c2e36fa8e1 100644 (file)
@@ -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 ()
This page took 0.068617 seconds and 5 git commands to generate.