Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Paranoid sort fix

  • Loading branch information...
commit 7c6637e5a37a0d9f6a302101ead780bc4da47d95 1 parent 0220570
Michael Raskin authored StefanKarpinski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  base/sort.jl
View
2  base/sort.jl
@@ -63,7 +63,7 @@ function ($insertionsort)($(args...), a::AbstractVector, p::AbstractVector{Int},
return a, p
end
-_jl_pivot_middle(a,b,c) = a < b ? (b < c ? b : c) : (a < c ? a : c)
+_jl_pivot_middle(a,b,c) = $lt(:a,:b) ? ($lt(:b,:c) ? b : c) : ($lt(:a,:c) ? a : c)
# very fast but unstable
function ($quicksort)($(args...), a::AbstractVector, lo::Int, hi::Int)
Please sign in to comment.
Something went wrong with that request. Please try again.