Skip to content

Commit

Permalink
bugfix in upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Aug 15, 2022
1 parent d9bc664 commit f6f0fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FillArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ getindex(A::AbstractFill, kr::AbstractArray{Bool}) = _fill_getindex(A, kr)

@inline Base.iterate(F::AbstractFill) = length(F) == 0 ? nothing : (v = getindex_value(F); (v, (v, 1)))
@inline function Base.iterate(F::AbstractFill, (v, n))
n > length(F) && return nothing
n >= length(F) && return nothing
v, (v, n+1)
end

Expand Down

0 comments on commit f6f0fd0

Please sign in to comment.