diff --git a/dtool/src/dtoolbase/stl_compares.I b/dtool/src/dtoolbase/stl_compares.I index 65b907b590..bdde4b20fa 100644 --- a/dtool/src/dtoolbase/stl_compares.I +++ b/dtool/src/dtoolbase/stl_compares.I @@ -124,7 +124,8 @@ is_equal(const Key &a, const Key &b) const { template INLINE size_t integer_hash:: 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(key); return AddHash::add_hash(hash, &key32, 1); }