summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Grand <christophe@cgrand.net>2009-08-05 16:08:46 +0200
committerRich Hickey <richhickey@gmail.com>2009-08-05 11:05:15 -0400
commit96589c0405b88880970f62f9e1380e77805642c7 (patch)
treefb030a11a0e69fcda6039b041da1a408ee96f66f /src
parent47b571fcf48b18ea59243937fc6ac4cfc6a1cf9d (diff)
fix count update on dissoc
Signed-off-by: Rich Hickey <richhickey@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/jvm/clojure/lang/PersistentHashMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jvm/clojure/lang/PersistentHashMap.java b/src/jvm/clojure/lang/PersistentHashMap.java
index 15587aea..ecfbeca1 100644
--- a/src/jvm/clojure/lang/PersistentHashMap.java
+++ b/src/jvm/clojure/lang/PersistentHashMap.java
@@ -221,7 +221,7 @@ static final class TransientHashMap extends ATransientMap {
Box removedLeaf = new Box(null);
INode newroot = root.without(edit, Util.hash(key), key, removedLeaf);
this.root = newroot == null ? EMPTY.root : newroot;
- if (removedLeaf != null) this.count--;
+ if (removedLeaf.val != null) this.count--;
return this;
}