Skip to content

Commit

Permalink
fix invalidations in sort! from Static.jl (#46491)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1fae1b9)
  • Loading branch information
ranocha authored and KristofferC committed Aug 30, 2022
1 parent 9787fa5 commit 0d42d02
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 0d42d02

Please sign in to comment.