mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 22:14:28 +02:00
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>
|
template <class T>
|
||||||
inline std::size_t float_hash_value(T v)
|
inline std::size_t float_hash_value(T v)
|
||||||
{
|
{
|
||||||
int exp;
|
int exp = 0;
|
||||||
v = boost::hash_detail::call_frexp(v, &exp);
|
v = boost::hash_detail::call_frexp(v, &exp);
|
||||||
|
|
||||||
std::size_t seed = 0;
|
std::size_t seed = 0;
|
||||||
|
Reference in New Issue
Block a user