aboutsummaryrefslogtreecommitdiff
path: root/src/util/hash_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/hash_impl.hpp')
-rw-r--r--src/util/hash_impl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/hash_impl.hpp b/src/util/hash_impl.hpp
index 146cfa0..ea9e7d1 100644
--- a/src/util/hash_impl.hpp
+++ b/src/util/hash_impl.hpp
@@ -14,8 +14,8 @@
template <typename Value>
void hash_combine(std::size_t &seed, const Value &value) noexcept
{
- constexpr uint32_t shift_left = 6;
- constexpr uint32_t shift_right = 2;
+ constexpr std::uint32_t shift_left = 6;
+ constexpr std::uint32_t shift_right = 2;
seed ^= std::hash<Value>()(value) + GOLDEN_RATIO + (seed << shift_left) +
(seed >> shift_right);