From 6b0e2a25cf1e98d3f11d4e6c0305dd327048bbb8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 27 Jun 2022 22:08:43 +0200 Subject: refactor: use int types from std namespace --- src/util/hash_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/hash_impl.hpp') 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 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) + GOLDEN_RATIO + (seed << shift_left) + (seed >> shift_right); -- cgit v1.2.3-18-g5258