Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
8me committed Apr 24, 2023
1 parent c6a05e0 commit 55afe68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ function Base.getindex(ba::LazyBranch{T,J,B}, range::UnitRange) where {T,J,B}
ib2 = findfirst(x -> x > (last(range) - 1), ba.fEntry)
if isnothing(ib1) #Check if we are completely on the recovered basket
offset = ba.b.fBasketEntry[end]
iths = [-1]
iths = [-1] # use magic number -1 as address for recovered basket only
elseif isnothing(ib2) # Check if we partially on the recovered basket
offset = ba.fEntry[ib1-1]
iths = vcat(collect(ib1-1:length(ba.fEntry)-1), -1)
iths = vcat(collect(ib1-1:length(ba.fEntry)-1), -1) # append magic number -1 for recovered basket at the end of the basket address range
else # Keep everything as it was
offset = ba.fEntry[ib1-1]
iths = ib1-1:ib2-1
Expand Down

0 comments on commit 55afe68

Please sign in to comment.