Skip to content

Commit 62337d0

Browse files
thomasmulvaneydnolen
authored andcommitted
CLJS-1967: Missing ^boolean for removed-leaf? in THM impl
Also uses the provided 'val' field of Box type rather than getting and setting a new '0' field.
1 parent 777d41b commit 62337d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6773,7 +6773,7 @@ reduces them without incurring seq initialization"
67736773
(== bitmap bit) nil
67746774
:else (.edit-and-remove-pair inode edit bit idx)))
67756775
(key-test key key-or-nil)
6776-
(do (aset removed-leaf? 0 true)
6776+
(do (set! (.-val removed-leaf?) true)
67776777
(.edit-and-remove-pair inode edit bit idx))
67786778
:else inode)))))
67796779

@@ -7012,7 +7012,7 @@ reduces them without incurring seq initialization"
70127012
(let [idx (hash-collision-node-find-index arr cnt key)]
70137013
(if (== idx -1)
70147014
inode
7015-
(do (aset removed-leaf? 0 true)
7015+
(do (set! (.-val removed-leaf?) true)
70167016
(if (== cnt 1)
70177017
nil
70187018
(let [editable (.ensure-editable inode edit)
@@ -7423,7 +7423,7 @@ reduces them without incurring seq initialization"
74237423
(if (identical? node root)
74247424
nil
74257425
(set! root node))
7426-
(if (aget removed-leaf? 0)
7426+
(if ^boolean (.-val removed-leaf?)
74277427
(set! count (dec count)))
74287428
tcoll)))
74297429
(throw (js/Error. "dissoc! after persistent!"))))

0 commit comments

Comments
 (0)