Skip to content

Commit 7a3397f

Browse files
committed
Cleanup
1 parent 452fe59 commit 7a3397f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,8 +1869,9 @@ difference = go 0
18691869
Empty -> goDA i (i1 + 1) nextB1' bResult (nChanges + 1)
18701870
st -> do
18711871
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)
1872+
let same = I# (Exts.reallyUnsafePtrEquality st st1)
1873+
let nChanges' = nChanges + (1 - same)
1874+
goDA (i + 1) (i1 + 1) nextB1' (bResult .|. m) nChanges'
18741875
where
18751876
m = b1' .&. negate b1'
18761877
nextB1' = b1' .&. complement m

0 commit comments

Comments
 (0)