From 6373656710354cfcf398486895f70588c3d11986 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 2 Feb 2023 07:29:03 +0200 Subject: [PATCH] Avoid -Wlong-long under C++03 --- include/boost/container_hash/detail/hash_range.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/container_hash/detail/hash_range.hpp b/include/boost/container_hash/detail/hash_range.hpp index db7bb55..45981c6 100644 --- a/include/boost/container_hash/detail/hash_range.hpp +++ b/include/boost/container_hash/detail/hash_range.hpp @@ -256,8 +256,8 @@ std::size_t>::type It p = first; std::size_t n = static_cast( last - first ); - boost::uint64_t const q = 0x9e3779b97f4a7c15ULL; - boost::uint64_t const k = 0xdf442d22ce4859b9ULL; // q * q + boost::uint64_t const q = static_cast( 0x9e3779b9 ) << 32 | 0x7f4a7c15; + boost::uint64_t const k = static_cast( 0xdf442d22 ) << 32 | 0xce4859b9; // q * q boost::uint64_t w = mulx( seed + q, k ); boost::uint64_t h = w ^ n; @@ -308,8 +308,8 @@ std::size_t>::type { std::size_t n = 0; - boost::uint64_t const q = 0x9e3779b97f4a7c15ULL; - boost::uint64_t const k = 0xdf442d22ce4859b9ULL; // q * q + boost::uint64_t const q = static_cast( 0x9e3779b9 ) << 32 | 0x7f4a7c15; + boost::uint64_t const k = static_cast( 0xdf442d22 ) << 32 | 0xce4859b9; // q * q boost::uint64_t w = mulx( seed + q, k ); boost::uint64_t h = w;