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:
Daniel James
2005-05-01 13:43:56 +00:00
parent 7e6b470009
commit 177884e8a3

View File

@@ -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.