Skip to content

Commit

Permalink
Replace accidental Int64s with Ints
Browse files Browse the repository at this point in the history
Ooops, I have a strong suspicion this came from some copy-paste with the
RPEL, but we want Int not Int64.
  • Loading branch information
tecosaur committed Aug 11, 2024
1 parent 4fcd8bb commit f6035eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/regioniterator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function eachregion(s::SubString{<:AnnotatedString}, pos::UnitRange{Int}=firstin
end

"""
annotation_events(string::AbstractString, annots::Vector{Tuple{UnitRange{Int64}, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
annotation_events(string::AbstractString, annots::Vector{Tuple{UnitRange{Int}, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
annotation_events(string::AnnotatedString, subregion::UnitRange{Int})
Find all annotation "change events" that occur within a `subregion` of `annots`,
Expand All @@ -89,7 +89,7 @@ index::Int}` where `pos` is the position of the event, `active` is a boolean
indicating whether the annotation is being activated or deactivated, and `index`
is the index of the annotation in question.
"""
function annotation_events(s::AbstractString, annots::Vector{Tuple{UnitRange{Int64}, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
function annotation_events(s::AbstractString, annots::Vector{Tuple{UnitRange{Int}, Pair{Symbol, Any}}}, subregion::UnitRange{Int})
events = Vector{NamedTuple{(:pos, :active, :index), Tuple{Int, Bool, Int}}}() # Position, Active?, Annotation index
for (i, (region, _)) in enumerate(annots)
if !isempty(intersect(subregion, region))
Expand Down

0 comments on commit f6035eb

Please sign in to comment.