Hash: Avoid type punning warning.

[SVN r80217]
This commit is contained in:
Daniel James
2012-08-25 20:54:10 +00:00
parent eec47991f9
commit 7b2f73c225

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