We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452fe59 commit 7a3397fCopy full SHA for 7a3397f
Data/HashMap/Internal.hs
@@ -1869,8 +1869,9 @@ difference = go 0
1869
Empty -> goDA i (i1 + 1) nextB1' bResult (nChanges + 1)
1870
st -> do
1871
A.write mary i st
1872
- let same = 1 - I# (Exts.reallyUnsafePtrEquality# st st1)
1873
- goDA (i + 1) (i1 + 1) nextB1' (bResult .|. m) (nChanges + same)
+ let same = I# (Exts.reallyUnsafePtrEquality st st1)
+ let nChanges' = nChanges + (1 - same)
1874
+ goDA (i + 1) (i1 + 1) nextB1' (bResult .|. m) nChanges'
1875
where
1876
m = b1' .&. negate b1'
1877
nextB1' = b1' .&. complement m
0 commit comments