Skip to content

Commit

Permalink
@inbounds annotations for filter (#30156)
Browse files Browse the repository at this point in the history
(cherry picked from commit 58f9bf7)
  • Loading branch information
andyferris authored and KristofferC committed Dec 30, 2018
1 parent 7df523a commit 52bf7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,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
Expand Down

0 comments on commit 52bf7b9

Please sign in to comment.