summaryrefslogtreecommitdiff
path: root/node/BloomFilter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/BloomFilter.hpp')
-rw-r--r--node/BloomFilter.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/node/BloomFilter.hpp b/node/BloomFilter.hpp
index 182b98ab..60af61ab 100644
--- a/node/BloomFilter.hpp
+++ b/node/BloomFilter.hpp
@@ -94,17 +94,12 @@ public:
/**
* @param n Value to set
- * @return True if corresponding bit was already set before this operation
*/
- inline bool set(unsigned int n)
+ inline void set(unsigned int n)
throw()
{
n %= B;
- unsigned char *const x = _field + (n / 8);
- const unsigned char m = (1 << (n % 8));
- bool already = ((*x & m));
- *x |= m;
- return already;
+ _field[n / 8] |= (1 << (n % 8));
}
/**