aboutsummaryrefslogtreecommitdiff
path: root/src/util/hash_impl.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-27 22:08:43 +0200
committerHampusM <hampus@hampusmat.com>2022-06-27 22:08:43 +0200
commit6b0e2a25cf1e98d3f11d4e6c0305dd327048bbb8 (patch)
treea62c23f4e66949fe109e07dec95ad3a3e5229a7c /src/util/hash_impl.hpp
parent9d0fe1b42c9f6a5c09bab444966d347a71a4b905 (diff)
refactor: use int types from std namespace
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);