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 63b310b commit 26f931dCopy full SHA for 26f931d
Data/HashMap/Internal.hs
@@ -1556,6 +1556,12 @@ submapBitmapIndexed comp !b1 !ary1 !b2 !ary2 = subsetBitmaps && go 0 0 (b1Orb2 .
1556
go !i !j !m
1557
| m > b1Orb2 = True
1558
1559
+#if (WORD_SIZE_IN_BITS == 32)
1560
+ -- m can overflow to 0 on 32-bit platforms.
1561
+ -- See #491.
1562
+ | m == 0 = True
1563
+#endif
1564
+
1565
-- In case a key is both in ary1 and ary2, check ary1[i] <= ary2[j] and
1566
-- increment the indices i and j.
1567
| b1Andb2 .&. m /= 0 = comp (A.index ary1 i) (A.index ary2 j) &&
0 commit comments