Skip to content

Commit ff3656e

Browse files
authored
Merge pull request #18060 from JuliaLang/jb/fix18051
fix #18051, allocation in sparse vector getindex
2 parents f14c2ca + b74bc6f commit ff3656e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

base/sort.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ for s in [:searchsortedfirst, :searchsortedlast, :searchsorted]
184184
$s(v::AbstractVector, x;
185185
lt=isless, by=identity, rev::Bool=false, order::Ordering=Forward) =
186186
$s(v,x,ord(lt,by,rev,order))
187+
$s(v::AbstractVector, x) = $s(v, x, Forward)
187188
end
188189
end
189190

0 commit comments

Comments
 (0)