Skip to content

Commit 436eb79

Browse files
Rename _midpoint to midpoint
Co-authored-by: Lilith Orion Hafner <[email protected]>
1 parent 88e5b22 commit 436eb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortingAlgorithms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ end
995995

996996
# midpoint was added to Base.sort in version 1.4 and later moved to Base
997997
# -> redefine for compatibility with earlier versions
998-
_midpoint(lo::Integer, hi::Integer) = lo + ((hi - lo) >>> 0x01)
998+
midpoint(lo::Integer, hi::Integer) = lo + ((hi - lo) >>> 0x01)
999999

10001000
function pagedmergesort!(v::AbstractVector{T}, lo::Integer, hi::Integer, buf::AbstractVector{T}, blockLocation, o=Base.Order.Forward) where T
10011001
len = hi + 1 -lo

0 commit comments

Comments
 (0)