Skip to content

Commit

Permalink
fix invalidations in sort! from Static.jl (JuliaLang#46491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Aug 29, 2022
1 parent 6cd2a9d commit 1fae1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/sort.jl
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function sort!(v::AbstractVector, lo::Integer, hi::Integer, ::InsertionSortAlg,
x = v[i]
while j > lo
y = v[j-1]
if !lt(o, x, y)
if !(lt(o, x, y)::Bool)
break
end
v[j] = y
Expand Down

0 comments on commit 1fae1b9

Please sign in to comment.