Skip to content

Commit

Permalink
Remove RangeIterator.ToArray bounds check
Browse files Browse the repository at this point in the history
  • Loading branch information
xtqqczze committed Jan 22, 2023
1 parent d5d96f4 commit 40bb7db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public int[] ToArray()
{
int[] array = new int[_end - _start];
int cur = _start;
for (int i = 0; i != array.Length; ++i)
for (int i = 0; i < array.Length; ++i)
{
array[i] = cur;
++cur;
Expand Down

0 comments on commit 40bb7db

Please sign in to comment.