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]
This commit is contained in:
Daniel James
2007-08-24 02:01:47 +00:00
parent 75e994b306
commit 993129e7e0

View File

@@ -56,7 +56,7 @@ namespace boost
std::numeric_limits<int>::digits - 1) std::numeric_limits<int>::digits - 1)
/ std::numeric_limits<int>::digits; / std::numeric_limits<int>::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<int>::digits); v = boost::hash_detail::call_ldexp(v, std::numeric_limits<int>::digits);
int const part = static_cast<int>(v); int const part = static_cast<int>(v);