forked from boostorg/functional
Hash: Avoid type punning warning.
[SVN r80217]
This commit is contained in:
1 parent
2f6cb78b80
commit
945d78bc4f
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