forked from boostorg/container_hash
Try to fix the failing denorm_min hash_value test by explicitly casting the
result of denorm_min() (I think it might be returning the wrong type). [SVN r28553]
This commit is contained in:
@@ -137,7 +137,7 @@ void float_tests(char const* name, T* = 0)
|
||||
std::cout<<"x1(denorm_min) == x1(zero) == "<<x1(zero)<<"\n";
|
||||
}
|
||||
BOOST_CHECK(x1(std::numeric_limits<T>::denorm_min()) ==
|
||||
HASH_NAMESPACE::hash_value(std::numeric_limits<T>::denorm_min()));
|
||||
HASH_NAMESPACE::hash_value((T) std::numeric_limits<T>::denorm_min()));
|
||||
}
|
||||
|
||||
// NaN also causes borland to crash.
|
||||
|
Reference in New Issue
Block a user