From 33e0ffdb76ac919fb4f9a0c38353693805bc13b7 Mon Sep 17 00:00:00 2001 From: Andy Ferris Date: Mon, 26 Nov 2018 16:38:23 +1000 Subject: [PATCH] `@inbounds` annotations for filter --- base/array.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/array.jl b/base/array.jl index 90721fcaa56b0..eba2baefee2bc 100644 --- a/base/array.jl +++ b/base/array.jl @@ -2332,7 +2332,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