diff --git a/include/boost/functional/hash/detail/hash_float.hpp b/include/boost/functional/hash/detail/hash_float.hpp index 7ccfb80..3edc6ab 100644 --- a/include/boost/functional/hash/detail/hash_float.hpp +++ b/include/boost/functional/hash/detail/hash_float.hpp @@ -98,8 +98,7 @@ namespace boost int>::type ) { - boost::uint32_t* ptr = (boost::uint32_t*)&v; - return (std::size_t) *ptr; + return hash_binary((char*) &v, 4); }