diff --git a/base/array.jl b/base/array.jl index 0e7e0b71db2c6..a8256ec8ff99a 100644 --- a/base/array.jl +++ b/base/array.jl @@ -2333,7 +2333,7 @@ function filter!(f, a::AbstractVector) for acurr in a if f(acurr) - a[i] = acurr + @inbounds a[i] = acurr y = iterate(idx, state) y === nothing && (i += 1; break) i, state = y