diff --git a/src/pugixml.cpp b/src/pugixml.cpp index c3df93b..4d0c2c9 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -378,7 +378,7 @@ PUGI__NS_BEGIN static PUGI__UNSIGNED_OVERFLOW unsigned int hash(const void* key) { - unsigned int h = static_cast(reinterpret_cast(key)); + unsigned int h = static_cast(reinterpret_cast(key) & 0xffffffff); // MurmurHash3 32-bit finalizer h ^= h >> 16;