mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
reinterpret_cast
This commit is contained in:
parent
c1f9f28043
commit
4ed9feda5e
@ -124,7 +124,8 @@ is_equal(const Key &a, const Key &b) const {
|
||||
template<class Key, class Compare>
|
||||
INLINE size_t integer_hash<Key, Compare>::
|
||||
add_hash(size_t hash, const Key &key) {
|
||||
PN_uint32 key32 = (PN_uint32)key;
|
||||
// We don't mind if this loses precision.
|
||||
PN_uint32 key32 = (PN_uint32)reinterpret_cast<unsigned long>(key);
|
||||
return AddHash::add_hash(hash, &key32, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user