|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80217 - trunk/boost/functional/hash/detail
From: dnljms_at_[hidden]
Date: 2012-08-25 16:54:11
Author: danieljames
Date: 2012-08-25 16:54:10 EDT (Sat, 25 Aug 2012)
New Revision: 80217
URL: http://svn.boost.org/trac/boost/changeset/80217
Log:
Hash: Avoid type punning warning.
Text files modified:
trunk/boost/functional/hash/detail/hash_float.hpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Modified: trunk/boost/functional/hash/detail/hash_float.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/hash_float.hpp (original)
+++ trunk/boost/functional/hash/detail/hash_float.hpp 2012-08-25 16:54:10 EDT (Sat, 25 Aug 2012)
@@ -98,8 +98,7 @@
int>::type
)
{
- boost::uint32_t* ptr = (boost::uint32_t*)&v;
- return (std::size_t) *ptr;
+ return hash_binary((char*) &v, 4);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk