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:
parent
c8dda5d1d9
commit
e7ede593ea
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue