OSDN Git Service

* java/util/IdentityHashMap.java (put): Replace mistaken use of
authorrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 02:18:32 +0000 (02:18 +0000)
committerrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 02:18:32 +0000 (02:18 +0000)
"<<" by "*".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91852 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/util/IdentityHashMap.java

index be871a2..f91dd13 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-08  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * java/util/IdentityHashMap.java (put): Replace mistaken use
+       of "<<" by "*".
+
 2004-12-06  Tom Tromey  <tromey@redhat.com>
 
        For PR java/14853:
 2004-12-06  Tom Tromey  <tromey@redhat.com>
 
        For PR java/14853:
index 5d15786..5b2e996 100644 (file)
@@ -492,7 +492,7 @@ public class IdentityHashMap extends AbstractMap
         Object[] old = table;
         // This isn't necessarily prime, but it is an odd number of key/value
         // slots, which has a higher probability of fewer collisions.
         Object[] old = table;
         // This isn't necessarily prime, but it is an odd number of key/value
         // slots, which has a higher probability of fewer collisions.
-        table = new Object[old.length << 1 + 2];
+        table = new Object[(old.length * 2) + 2];
         Arrays.fill(table, emptyslot);
         size = 0;
         threshold = (table.length >>> 3) * 3;
         Arrays.fill(table, emptyslot);
         size = 0;
         threshold = (table.length >>> 3) * 3;