Skip to content

Commit c2e98ff

Browse files
committed
searchsortedlast now returns same vector element type as input vector
1 parent 3ff76ea commit c2e98ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/special/misc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ for TType in [:Integer, :(AbstractSIMDVector{W,<:Integer})]
244244
lo = ifelse(b, lo, m)
245245
st = lo < hi - u
246246
end
247-
return lo
247+
return convert(typeof(x), lo)
248248
end
249249
end
250250
end

0 commit comments

Comments
 (0)