File: remove-roundedBits-max-conition.patch

package info (click to toggle)
haskell-bloomfilter 2.0.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 192 kB
  • sloc: ansic: 852; haskell: 740; makefile: 13
file content (14 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (2)
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)