Skip to content

Commit 2d1d3c2

Browse files
committed
insertModifying: Use two with Collisions
1 parent f8c22ba commit 2d1d3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/HashMap/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ insertModifying x f k0 m0 = go h0 k0 0 m0
10441044
in if A.unsafeSameArray v v'
10451045
then t
10461046
else Collision h v'
1047-
| otherwise = go h k s $ BitmapIndexed (mask hy s) (A.singleton t)
1047+
| otherwise = runST (two s h k x hy t)
10481048
{-# INLINABLE insertModifying #-}
10491049

10501050
-- | Like insertModifying for arrays; used to implement insertModifying

0 commit comments

Comments
 (0)