From 993129e7e09cd6366358a284fd4de22cade28462 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 24 Aug 2007 02:01:47 +0000 Subject: [PATCH] Change a comparison in the float hashing code, which can cause a warning on gcc. Although the warning doesn't currently turn up in this branch, it could be caused quite easily. Originally reported in: http://lists.boost.org/Archives/boost/2007/08/126084.php [SVN r38883] --- include/boost/functional/detail/hash_float.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index b85d15f..6415946 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -56,7 +56,7 @@ namespace boost std::numeric_limits::digits - 1) / std::numeric_limits::digits; - for(std::size_t i = 0; i < length; ++i) + for(std::size_t i = 0; i != length; ++i) { v = boost::hash_detail::call_ldexp(v, std::numeric_limits::digits); int const part = static_cast(v);