1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

HashSet ContainsAlt hash fix

This commit is contained in:
Brian Fiete 2024-10-21 09:13:40 -04:00
parent c8dda5d1d9
commit e7ede593ea

View file

@ -206,7 +206,7 @@ namespace System.Collections
{
if (mBuckets != null)
{
int32 hashCode = (int32)item.GetHashCode() & Lower31BitMask;
int32 hashCode = (int32)InternalGetHashCodeAlt(item) & Lower31BitMask;
// see note at "HashSet" level describing why "- 1" appears in for loop
for (int32 i = mBuckets[hashCode % mBuckets.Count] - 1; i >= 0; i = mSlots[i].mNext)
{