summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Grand <christophe@cgrand.net>2009-08-24 21:08:11 +0200
committerRich Hickey <richhickey@gmail.com>2009-08-26 12:02:57 -0400
commit2cf6eb9e746ab1c610460badf4f99f1ee19bf0b3 (patch)
treef3d610ae8a8484188ecfd26f3eed2f0971b9508c /src
parent56d70e433a66087c720e82a67e6460fae1169862 (diff)
fixed bug in HashCollisionNode
Signed-off-by: Rich Hickey <richhickey@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/jvm/clojure/lang/PersistentHashMap.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jvm/clojure/lang/PersistentHashMap.java b/src/jvm/clojure/lang/PersistentHashMap.java
index bd44af82..3fbabca9 100644
--- a/src/jvm/clojure/lang/PersistentHashMap.java
+++ b/src/jvm/clojure/lang/PersistentHashMap.java
@@ -770,7 +770,7 @@ final static class HashCollisionNode implements INode{
private HashCollisionNode ensureEditable(AtomicReference<Thread> edit){
if(this.edit == edit)
return this;
- return new HashCollisionNode(edit, count, hash, array);
+ return new HashCollisionNode(edit, hash, count, array);
}
private HashCollisionNode ensureEditable(AtomicReference<Thread> edit, int count, Object[] array){
@@ -778,7 +778,7 @@ final static class HashCollisionNode implements INode{
this.array = array;
return this;
}
- return new HashCollisionNode(edit, count, hash, array);
+ return new HashCollisionNode(edit, hash, count, array);
}
private HashCollisionNode editAndSet(AtomicReference<Thread> edit, int i, Object a) {