We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f09253e commit c916aeaCopy full SHA for c916aea
1 file changed
opencensus/common/internal/hash_mix.h
@@ -29,7 +29,8 @@ class HashMix final {
29
// Mixes in another *hashed* value.
30
void Mix(std::size_t hash) {
31
// A multiplier that has been found to provide good mixing.
32
- constexpr std::size_t kMul = 0xdc3eb94af8ab4c93ULL;
+ constexpr std::size_t kMul =
33
+ static_cast<std::size_t>(0xdc3eb94af8ab4c93ULL);
34
hash_ *= kMul;
35
hash_ =
36
((hash << 19) | (hash >> (std::numeric_limits<size_t>::digits - 19))) +
0 commit comments