diff --git a/Source/Engine/Core/Collections/HashFunctions.h b/Source/Engine/Core/Collections/HashFunctions.h index c8503850f..562c36d8e 100644 --- a/Source/Engine/Core/Collections/HashFunctions.h +++ b/Source/Engine/Core/Collections/HashFunctions.h @@ -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