Skip to content

Commit 0d42d02

Browse files
ranochaKristofferC
authored andcommitted
fix invalidations in sort! from Static.jl (#46491)
(cherry picked from commit 1fae1b9)
1 parent 9787fa5 commit 0d42d02

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)