Skip to content

Commit

Permalink
bug fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruihan-Yin committed Mar 6, 2024
1 parent 8124163 commit 39cfc20
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -839,12 +839,12 @@ internal unsafe int GetNonRandomizedHashCode()
// if the input is less than a vector128 length, pad with trailing zero.
uint[] arrWithPad = new uint[4];

for(int i = 0; i < length / 2; i++)
for(int i = 0; i <= length / 2; i++)
{
arrWithPad[i] = ptr[i];
}

for(int i = length; length < 4; length++)
for(int i = length / 2 + 1; length < 4; length++)
{
arrWithPad[i] = 0;
}
Expand Down Expand Up @@ -946,12 +946,12 @@ internal unsafe int GetNonRandomizedHashCodeOrdinalIgnoreCase()
// if the input is less than a vector128 length, pad with trailing zero.
uint[] arrWithPad = new uint[4];

for(int i = 0; i < length / 2; i++)
for(int i = 0; i <= length / 2; i++)
{
arrWithPad[i] = ptr[i];
}

for(int i = length; length < 4; length++)
for(int i = length / 2 + 1; length < 4; length++)
{
arrWithPad[i] = 0;
}
Expand Down

0 comments on commit 39cfc20

Please sign in to comment.