Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72850 - sandbox/bloom_filter/trunk/boost/bloom_filter
From: cpp.cabrera_at_[hidden]
Date: 2011-07-02 09:10:23


Author: alejandro
Date: 2011-07-02 09:10:22 EDT (Sat, 02 Jul 2011)
New Revision: 72850
URL: http://svn.boost.org/trac/boost/changeset/72850

Log:
Fixed a bug in array_size calculation:
        sizeof(Block) * 4 -> sizeof(Block) * 8
Text files modified:
   sandbox/bloom_filter/trunk/boost/bloom_filter/counting_bloom.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/counting_bloom.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/counting_bloom.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/counting_bloom.hpp 2011-07-02 09:10:22 EDT (Sat, 02 Jul 2011)
@@ -44,7 +44,7 @@
       // it doesn't make sense to ever support using a BitsPerBin value larger
       // than the number of bits per Block. In that case, the user shouldn't
       // be using a Bloom filter to represent their data.
- BOOST_STATIC_ASSERT( (BitsPerBin <= (sizeof(Block) * 4) ) );
+ BOOST_STATIC_ASSERT( (BitsPerBin <= (sizeof(Block) * 8) ) );
 
       // a slot is one element position in the array
       // a bin is a segment of a slot


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk