[Git][haskell-team/DHG_packages][master] bloomfilter: Restore the 32bit workaround
    Ilias Tsitsimpis (@iliastsi) 
    gitlab at salsa.debian.org
       
    Wed Nov  1 07:47:22 GMT 2023
    
    
  
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
2b91dce2 by Adrian Bunk at 2023-11-01T07:46:48+00:00
bloomfilter: Restore the 32bit workaround
- - - - -
2 changed files:
- + p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch
- + p/haskell-bloomfilter/debian/patches/series
Changes:
=====================================
p/haskell-bloomfilter/debian/patches/remove-roundedBits-max-conition.patch
=====================================
@@ -0,0 +1,15 @@
+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 @@ safeSuggestSizing capacity errRate
+             minimum [((-k) * cap / log (1 - (errRate ** (1 / k))), k)
+                      | k <- [1..100]]
+         roundedBits = nextPowerOfTwo (ceiling bits)
+-    in if roundedBits <= 0 || maxbitstoolarge roundedBits
++    in if roundedBits <= 0
+        then Left  "capacity too large to represent"
+        else Right (roundedBits, truncate hashes)
+   where
=====================================
p/haskell-bloomfilter/debian/patches/series
=====================================
@@ -0,0 +1 @@
+remove-roundedBits-max-conition.patch
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2b91dce23ffbd197ae7710e9db22d216a75ef1a2
-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2b91dce23ffbd197ae7710e9db22d216a75ef1a2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20231101/88d0e6bf/attachment.htm>
    
    
More information about the Pkg-haskell-commits
mailing list