Skip to content

Commit dba62cb

Browse files
committed
Use _deleteend instead of resize! in vfilter! even though it seems to be an internal function.
1 parent 7a63110 commit dba62cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function vfilter!(f::F, x::Vector{T}, y::AbstractArray{T}) where {F,T <: SUPPORT
2121
mask = rem_mask & f(SVec(vy))
2222
SIMDPirates.compressstore!(gep(ptr_x, j), vy, mask)
2323
j += count_ones(mask)
24-
resize!(x, j)
24+
Base._deleteend!(x, N-j) # resize!(x, j)
2525
end
2626
x
2727
end

0 commit comments

Comments
 (0)