We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hash_rounds_t
1 parent 2a9a2e8 commit 6a5303dCopy full SHA for 6a5303d
src/BloomFilter.cpp
@@ -30,7 +30,7 @@ typedef unsigned int hash_t;
30
31
static void checkArchitecture();
32
33
-static size_t calculateHashRounds(size_t size, size_t maxItems);
+static hash_rounds_t calculateHashRounds(size_t size, size_t maxItems);
34
35
static hash_t djb2Hash(const string &text);
36
@@ -71,8 +71,8 @@ static void checkArchitecture() {
71
}
72
73
74
-static size_t calculateHashRounds(size_t size, size_t maxItems) {
75
- return (size_t) round(log(2.0) * size / maxItems);
+static hash_rounds_t calculateHashRounds(size_t size, size_t maxItems) {
+ return (hash_rounds_t) round(log(2.0) * size / maxItems);
76
77
78
void BloomFilter::add(const string &element) {
0 commit comments