Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit c916aea

Browse files
authored
Fix 32-bit build. (#215)
1 parent f09253e commit c916aea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opencensus/common/internal/hash_mix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class HashMix final {
2929
// Mixes in another *hashed* value.
3030
void Mix(std::size_t hash) {
3131
// A multiplier that has been found to provide good mixing.
32-
constexpr std::size_t kMul = 0xdc3eb94af8ab4c93ULL;
32+
constexpr std::size_t kMul =
33+
static_cast<std::size_t>(0xdc3eb94af8ab4c93ULL);
3334
hash_ *= kMul;
3435
hash_ =
3536
((hash << 19) | (hash >> (std::numeric_limits<size_t>::digits - 19))) +

0 commit comments

Comments
 (0)