Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion opencensus/common/internal/hash_mix.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class HashMix final {
// Mixes in another *hashed* value.
void Mix(std::size_t hash) {
// A multiplier that has been found to provide good mixing.
constexpr std::size_t kMul = 0xdc3eb94af8ab4c93ULL;
constexpr std::size_t kMul =
static_cast<std::size_t>(0xdc3eb94af8ab4c93ULL);
hash_ *= kMul;
hash_ =
((hash << 19) | (hash >> (std::numeric_limits<size_t>::digits - 19))) +
Expand Down