Skip to content

Commit

Permalink
@inbounds annotations for filter
Browse files Browse the repository at this point in the history
  • Loading branch information
andyferris authored and Andy Ferris committed Dec 5, 2018
1 parent 5cbbed3 commit 33e0ffd
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 @@ -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
Expand Down

0 comments on commit 33e0ffd

Please sign in to comment.