Skip to content

Commit

Permalink
fix invalidations in sort! from Static.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Aug 26, 2022
1 parent c491e79 commit 6352a5b
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 6352a5b

Please sign in to comment.