Skip to content

Commit

Permalink
Re-add inbounds annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Sep 22, 2021
1 parent 20189b2 commit edbfc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2354,7 +2354,7 @@ end
function _findall!(I::Vector, invert::Bool, A::AbstractArray{Bool})
cnt = 1
len = length(I)
for (k, v) in pairs(A)
@inbounds for (k, v) in pairs(A)
cnt > len && break
I[cnt] = k
cnt += v invert
Expand All @@ -2366,7 +2366,7 @@ function _findall!(I::Vector, invert::Bool, A::AbstractVector{Bool})
i = firstindex(A)
cnt = 1
len = length(I)
while cnt len
@inbounds while cnt len
I[cnt] = i
cnt += A[i] invert
i = nextind(A, i)
Expand Down

0 comments on commit edbfc72

Please sign in to comment.