Skip to content

Commit 22ff4f3

Browse files
authored
Fix asserts in Array.cs (#35447)
1 parent 1db71ea commit 22ff4f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/libraries/System.Private.CoreLib/src/System

src/libraries/System.Private.CoreLib/src/System/Array.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ private void IntrospectiveSort(int left, int length)
19361936

19371937
private void IntroSort(int lo, int hi, int depthLimit)
19381938
{
1939-
Debug.Assert(hi > lo);
1939+
Debug.Assert(hi >= lo);
19401940
Debug.Assert(depthLimit >= 0);
19411941

19421942
while (hi > lo)
@@ -2150,7 +2150,7 @@ private void IntrospectiveSort(int left, int length)
21502150

21512151
private void IntroSort(int lo, int hi, int depthLimit)
21522152
{
2153-
Debug.Assert(hi > lo);
2153+
Debug.Assert(hi >= lo);
21542154
Debug.Assert(depthLimit >= 0);
21552155

21562156
while (hi > lo)

0 commit comments

Comments
 (0)