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 12, 2018
1 parent 7b52bed commit 5fca9de
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 @@ -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
Expand Down

0 comments on commit 5fca9de

Please sign in to comment.