Skip to content

Commit a3ab29c

Browse files
committed
fix invalidations in sort! from Static.jl (JuliaLang#46491)
1 parent 5544a0f commit a3ab29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/sort.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ function sort!(v::AbstractVector, lo::Integer, hi::Integer, ::InsertionSortAlg,
501501
x = v[i]
502502
while j > lo
503503
y = v[j-1]
504-
if !lt(o, x, y)
504+
if !(lt(o, x, y)::Bool)
505505
break
506506
end
507507
v[j] = y

0 commit comments

Comments
 (0)