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:
parent
161d9dc540
commit
9ae172c43f
1 changed files with 1 additions and 1 deletions
|
@ -1245,7 +1245,7 @@ namespace System.Collections
|
||||||
public int32 GetHashKey(int hashCode)
|
public int32 GetHashKey(int hashCode)
|
||||||
{
|
{
|
||||||
if (sizeof(int) == 4)
|
if (sizeof(int) == 4)
|
||||||
return (int32)hashCode;
|
return (int32)hashCode & 0x7FFFFFFF;
|
||||||
#unwarn
|
#unwarn
|
||||||
return (int32)(hashCode ^ ((hashCode >> 31) * 1171)) & 0x7FFFFFFF;
|
return (int32)(hashCode ^ ((hashCode >> 31) * 1171)) & 0x7FFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue