diff --git a/test/sorting.jl b/test/sorting.jl index e32cba2d37bbff..e3abfd4e15d626 100644 --- a/test/sorting.jl +++ b/test/sorting.jl @@ -661,11 +661,11 @@ end @test issorted(a) a = view([9:-1:0;], :)::SubArray - Base.Sort.sort_int_range!(a, 10, 0) # test it supports non-Vector + Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0) # test it supports non-Vector @test issorted(a) a = OffsetArray([9:-1:0;], -5) - Base.Sort.sort_int_range!(a, 10, 0) + Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0) @test issorted(a) end