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 committed Aug 30, 2022
1 parent 5544a0f commit a3ab29c
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 @@ -501,7 +501,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 a3ab29c

Please sign in to comment.