Skip to content

Commit

Permalink
fixup! fix overflow in CartesianIndices iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Mar 19, 2019
1 parent 6acd751 commit b31ba8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/multidimensional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ module IteratorsMD
iterfirst, iterfirst
end
@inline function iterate(r::Reverse{<:CartesianIndices}, state)
valid, I = dec(state.I, last(r.itr).I, first(r.itr).I)
valid, I = dec((), state.I, last(r.itr).I, first(r.itr).I)
valid || return nothing
return I, I
end
Expand Down

0 comments on commit b31ba8d

Please sign in to comment.