From 74fe6d9b0c00a1e212112a153c90c8249561eca7 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Thu, 18 Jun 2026 14:10:57 -0500 Subject: [PATCH] Fully qualify Base.Sort.SMALL_ALGORITHM This is the public way to access it. SMALL_ALGORITHM is public in Sort and Sort is public in Base, but SMALL_ALGORITHM is not public in Base. This also survives https://github.com/JuliaLang/julia/pull/62133. --- src/SortingAlgorithms.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortingAlgorithms.jl b/src/SortingAlgorithms.jl index f432e2c..3f44e0b 100644 --- a/src/SortingAlgorithms.jl +++ b/src/SortingAlgorithms.jl @@ -908,7 +908,7 @@ midpoint(lo::Integer, hi::Integer) = lo + ((hi - lo) >>> 0x01) function pagedmergesort!(v::AbstractVector{T}, lo::Integer, hi::Integer, o::Ordering, scratch::AbstractVector{T}, pageLocations) where {T} len = hi + 1 - lo - if len <= Base.SMALL_THRESHOLD + if len <= Base.Sort.SMALL_THRESHOLD return Base.Sort.sort!(v, lo, hi, Base.Sort.InsertionSortAlg(), o) end m = midpoint(lo, hi - 1) # hi-1: ensure midpoint is rounded down. OK, because lo < hi is satisfied here