Skip to content

Commit 37fc321

Browse files
committed
update usage of sort_int_range! in test to add lo, hi
1 parent e61902f commit 37fc321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sorting.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ end
661661
@test issorted(a)
662662

663663
a = view([9:-1:0;], :)::SubArray
664-
Base.Sort.sort_int_range!(a, 10, 0) # test it supports non-Vector
664+
Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0) # test it supports non-Vector
665665
@test issorted(a)
666666

667667
a = OffsetArray([9:-1:0;], -5)
668-
Base.Sort.sort_int_range!(a, 10, 0)
668+
Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0)
669669
@test issorted(a)
670670
end
671671

0 commit comments

Comments
 (0)