1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-26 19:48:01 +02:00

Win32 hashcode fix

This commit is contained in:
Brian Fiete 2025-01-27 09:53:54 -08:00
parent 161d9dc540
commit 9ae172c43f

View file

@ -1245,7 +1245,7 @@ namespace System.Collections
public int32 GetHashKey(int hashCode)
{
if (sizeof(int) == 4)
return (int32)hashCode;
return (int32)hashCode & 0x7FFFFFFF;
#unwarn
return (int32)(hashCode ^ ((hashCode >> 31) * 1171)) & 0x7FFFFFFF;
}