From 0794cfec9eeef98e32277274a2df754a6185714d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 9 Feb 2022 07:13:27 +0200 Subject: [PATCH] Avoid -Wlong-long in mix64_policy --- include/boost/unordered/detail/implementation.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 27f2e330..a4ae2222 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -2001,7 +2001,8 @@ namespace boost { static inline SizeT apply_hash(Hash const& hf, T const& x) { // https://en.wikipedia.org/wiki/Hash_function#Fibonacci_hashing - SizeT const m = 11400714819323198485ull; // 2^64 / phi + // SizeT const m = 11400714819323198485ull; // 2^64 / phi + SizeT const m = ( SizeT(0x9e3779b9u) << 32 ) + 0x7f4a7c15u; return hf(x) * m; }