From 1fae1b98b042f0dde6910cc931d94ba1d35ca527 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Mon, 29 Aug 2022 21:21:59 +0200 Subject: [PATCH] fix invalidations in sort! from Static.jl (#46491) --- base/sort.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/sort.jl b/base/sort.jl index 8a3d2e2871cfe..e69ed8cfa61a0 100644 --- a/base/sort.jl +++ b/base/sort.jl @@ -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