mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
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:
parent
f7a31ab004
commit
774dadfe9a
7 changed files with 11 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue