mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 14:04:27 +02:00
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:
@@ -56,7 +56,7 @@ namespace boost
|
||||
std::numeric_limits<int>::digits - 1)
|
||||
/ 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);
|
||||
int const part = static_cast<int>(v);
|
||||
|
Reference in New Issue
Block a user