Skip to content

Commit e154405

Browse files
committed
Move ptr-eq check within st' alternative
1 parent 05e9fbf commit e154405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,8 +1185,8 @@ deleteFromSubtree !s !h !k = \case
11851185
-> l
11861186
| otherwise
11871187
-> BitmapIndexed (b .&. complement m) (A.delete ary i)
1188-
st' | isLeafOrCollision st' && A.length ary == 1 -> st'
1189-
| st' `ptrEq` st -> t
1188+
st' | st' `ptrEq` st -> t
1189+
| isLeafOrCollision st' && A.length ary == 1 -> st'
11901190
| otherwise -> BitmapIndexed b (A.update ary i st')
11911191
where m = mask h s
11921192
i = sparseIndex b m

0 commit comments

Comments
 (0)