Skip to content

Commit 16389ad

Browse files
committed
Make it work with older Julia
1 parent 7a89465 commit 16389ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/quicksort.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ function choose_pivot(xs, basesize, order)
182182
eq(order, samples[7], samples[8]) &&
183183
eq(order, samples[8], samples[9])
184184
)
185-
pivot, ishomogenous =
186-
refine_pivot_serial(@view(xs[begin:min(end, begin + 127)]), pivot, order)
185+
pivot, ishomogenous = refine_pivot_serial(@view(xs[1:min(end, 128)]), pivot, order)
187186
if ishomogenous
188187
length(xs) <= 128 && return (pivot, true, true)
189188
pivot, ishomogenous =

0 commit comments

Comments
 (0)