diff --git a/include/util/xor_fast_hash.hpp b/include/util/xor_fast_hash.hpp index 4c1b864c0..0cfed223f 100644 --- a/include/util/xor_fast_hash.hpp +++ b/include/util/xor_fast_hash.hpp @@ -37,8 +37,8 @@ namespace util */ class XORFastHash { // 65k entries - std::array table1; - std::array table2; + std::array table1; + std::array table2; public: XORFastHash() @@ -54,8 +54,8 @@ class XORFastHash inline std::uint16_t operator()(const std::uint32_t originalValue) const { - std::uint16_t lsb = ((originalValue)&0xffff); - std::uint16_t msb = (((originalValue) >> 16) & 0xffff); + std::uint16_t lsb = originalValue & 0xffffu; + std::uint16_t msb = originalValue >> 16u; BOOST_ASSERT(lsb < table1.size()); BOOST_ASSERT(msb < table2.size());