am a2c8e166: Merge "Fix reading uninitialized memory in BloomFilter."
* commit 'a2c8e166e9d680ee0121f1e01c2f33305623c59d': Fix reading uninitialized memory in BloomFilter.main
commit
2565eca547
|
@ -17,6 +17,7 @@
|
|||
#ifndef LATINIME_BLOOM_FILTER_H
|
||||
#define LATINIME_BLOOM_FILTER_H
|
||||
|
||||
#include <cstring>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "defines.h"
|
||||
|
@ -35,6 +36,7 @@ class BloomFilter {
|
|||
public:
|
||||
BloomFilter() {
|
||||
ASSERT(BIGRAM_FILTER_BYTE_SIZE * 8 >= BIGRAM_FILTER_MODULO);
|
||||
memset(mFilter, 0, sizeof(mFilter));
|
||||
}
|
||||
|
||||
// TODO: uint32_t position
|
||||
|
|
Loading…
Reference in New Issue