forked from boostorg/container_hash
Hash: Avoid type punning warning.
[SVN r80217]
This commit is contained in:
1 parent
eec47991f9
commit
7b2f73c225
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user