Hash: Avoid type punning warning.

[SVN r80217]
This commit is contained in:
Daniel James
2012-08-25 20:54:10 +00:00
parent 2f6cb78b80
commit 945d78bc4f

View File

@@ -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);
}