forked from boostorg/container_hash
Initialise the exponent before calling frexp in the hash float function.
[SVN r29200]
This commit is contained in:
@@ -263,7 +263,7 @@ namespace boost
|
||||
template <class T>
|
||||
inline std::size_t float_hash_value(T v)
|
||||
{
|
||||
int exp;
|
||||
int exp = 0;
|
||||
v = boost::hash_detail::call_frexp(v, &exp);
|
||||
|
||||
std::size_t seed = 0;
|
||||
|
Reference in New Issue
Block a user