Skip to content

Commit

Permalink
Merge pull request #20 from JuliaReach/schillic/length
Browse files Browse the repository at this point in the history
Use eachindex instead of 1:length
  • Loading branch information
schillic committed Mar 9, 2024
2 parents 6e75446 + fc467e1 commit c891025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BackwardAlgorithms/PolyhedraBackward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function _linear_map_inverse(d::AbstractVector{<:Number}, P::LazySet)
end
if has_undefs # there were redundant constraints, so remove them
constraints_MP = [constraints_MP[i]
for i in 1:length(constraints_MP)
for i in eachindex(constraints_MP)
if isassigned(constraints_MP, i)]
end
if isempty(constraints_MP)
Expand Down

0 comments on commit c891025

Please sign in to comment.