Skip to content

Commit c9c937f

Browse files
Fix one smaller bug.
1 parent 77508a6 commit c9c937f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ExtendedSystemObjects/UnmanagedIntList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public int BinarySearch(int value)
206206
/// </summary>
207207
public void Sort()
208208
{
209-
AsSpan().Sort(); // Uses Array.Sort internally
209+
AsSpan()[..Length].Sort(); // Uses Array.Sort internally
210210
}
211211

212212
/// <summary>

0 commit comments

Comments
 (0)