Package: haskell-bloomfilter / 2.0.1.0-6

remove-roundedBits-max-conition.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
http://bugs.debian.org/756801

Index: bloomfilter-2.0.0.0/Data/BloomFilter/Easy.hs
===================================================================
--- bloomfilter-2.0.0.0.orig/Data/BloomFilter/Easy.hs	2014-11-13 15:30:23.746100048 +0100
+++ bloomfilter-2.0.0.0/Data/BloomFilter/Easy.hs	2014-11-13 15:30:23.742099973 +0100
@@ -72,7 +72,7 @@
             minimum [((-k) * cap / log (1 - (errRate ** (1 / k))), k)
                      | k <- [1..100]]
         roundedBits = nextPowerOfTwo (ceiling bits)
-    in if roundedBits <= 0 || roundedBits > 0xffffffff
+    in if roundedBits <= 0
        then Left  "capacity too large to represent"
        else Right (roundedBits, truncate hashes)