Skip to content

Commit

Permalink
Merge pull request #50 from RoyconSkylands/fixing-jagged-array
Browse files Browse the repository at this point in the history
Fixing ContainsKey
  • Loading branch information
genaray authored Nov 20, 2023
2 parents 2a97f63 + fa3172d commit 24dfc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arch.LowLevel/Jagged/SparseJaggedArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public ref T TryGetValue(int index, out bool @bool)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool ContainsKey(int index)
{
if (index <= 0 || index > Capacity)
if (index <= 0 || index >= Capacity)
{
return false;
}
Expand Down

0 comments on commit 24dfc7e

Please sign in to comment.