Change bloom filter's dependence on size_t.

That type can vary across platforms, but factored in to a bloom
filter's internal state, e.g. size of the seed.
This commit is contained in:
Jon Siwek 2013-08-16 12:39:21 -05:00
parent f7a31ab004
commit 774dadfe9a
7 changed files with 11 additions and 13 deletions

View file

@ -15,7 +15,7 @@ namespace probabilistic {
*/
class BitVector : public SerialObj {
public:
typedef size_t block_type;
typedef uint64_t block_type;
typedef size_t size_type;
typedef bool const_reference;
@ -281,7 +281,7 @@ public:
*
* @return The hash.
*/
size_t Hash() const;
uint64_t Hash() const;
/**
* Serializes the bit vector.