Skip to content

Commit d670ac7

Browse files
committed
Fix the bug
1 parent e0d7141 commit d670ac7

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
@@ -2319,7 +2319,7 @@ updateOrConcatWithKey f ary1 ary2 = A.run $ do
23192319
| i2 >= n2 = return iEnd
23202320
| otherwise = do
23212321
l@(L k v2) <- A.indexM ary2 i2
2322-
res <- searchSwap k iMut n2 mary
2322+
res <- searchSwap k iMut n1 mary
23232323
case res of
23242324
Just (L _ v1) -> do -- key occurs in both arrays, store combination in position iMut
23252325
case f k v1 v2 of (# v3 #) -> A.write mary iMut (L k v3)

0 commit comments

Comments
 (0)