Skip to content

Commit

Permalink
Fix asserts in Array.cs (dotnet#35447)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Apr 25, 2020
1 parent 1db71ea commit 22ff4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/Array.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ private void IntrospectiveSort(int left, int length)

private void IntroSort(int lo, int hi, int depthLimit)
{
Debug.Assert(hi > lo);
Debug.Assert(hi >= lo);
Debug.Assert(depthLimit >= 0);

while (hi > lo)
Expand Down Expand Up @@ -2150,7 +2150,7 @@ private void IntrospectiveSort(int left, int length)

private void IntroSort(int lo, int hi, int depthLimit)
{
Debug.Assert(hi > lo);
Debug.Assert(hi >= lo);
Debug.Assert(depthLimit >= 0);

while (hi > lo)
Expand Down

0 comments on commit 22ff4f3

Please sign in to comment.