Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Temp: Introduce bug in intersectionCollisions
  • Loading branch information
sjakobi committed Apr 25, 2022
commit 2f888fb3b93c82f9f3024637d1774ca9b816ea25
2 changes: 1 addition & 1 deletion Data/HashMap/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ intersectionCollisions f h1 h2 ary1 ary2
case len of
0 -> pure Empty
1 -> Leaf h1 <$> A.read mary 0
_ -> Collision h1 <$> (A.unsafeFreeze =<< A.shrink mary len)
_ -> Collision h1 <$> (A.unsafeFreeze =<< A.shrink mary (len-1))
| otherwise = Empty
{-# INLINE intersectionCollisions #-}

Expand Down