Skip to content

Commit 1fae1b9

Browse files
authored
fix invalidations in sort! from Static.jl (#46491)
1 parent 6cd2a9d commit 1fae1b9

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
@@ -519,7 +519,7 @@ function sort!(v::AbstractVector, lo::Integer, hi::Integer, ::InsertionSortAlg,
519519
x = v[i]
520520
while j > lo
521521
y = v[j-1]
522-
if !lt(o, x, y)
522+
if !(lt(o, x, y)::Bool)
523523
break
524524
end
525525
v[j] = y

0 commit comments

Comments
 (0)