Skip to content

Commit fc018df

Browse files
committed
Fix the bug
1 parent 3315dba commit fc018df

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

0 commit comments

Comments
 (0)