Skip to content

Commit

Permalink
Update resolution.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhart authored Sep 23, 2019
1 parent 3d2b89e commit c1f13fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resolution/resolution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ elem_type(::ResolutionSet{T}) where T <: AbstractAlgebra.RingElem = sresolution{
parent_type(::Type{sresolution{T}}) where T <: AbstractAlgebra.RingElem = ResolutionSet{T}

function checkbounds(r::sresolution, i::Int)
(i < 1 || i > length(r)) && throw(BoundsError(r, i))
# structure has 1 more item than the mathematical length
(i < 1 || i > length(r) + 1) && throw(BoundsError(r, i))
end

function getindex(r::sresolution, i::Int)
Expand Down

0 comments on commit c1f13fc

Please sign in to comment.