Fix hashing pinter on 32-bit systems

This commit is contained in:
Wojtek Figat
2026-03-03 09:48:45 +01:00
parent 2a426e2812
commit 3e63551e90

View File

@@ -66,8 +66,12 @@ inline uint32 GetHash(const double key)
inline uint32 GetHash(const void* key)
{
#if PLATFORM_64BITS
static const int64 shift = 3;
return (uint32)((int64)(key) >> shift);
#else
return (uint32)key;
#endif
}
template<typename EnumType>