Skip to content

Commit f6035eb

Browse files
committed
Replace accidental Int64s with Ints
Ooops, I have a strong suspicion this came from some copy-paste with the RPEL, but we want Int not Int64.
1 parent 4fcd8bb commit f6035eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/regioniterator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function eachregion(s::SubString{<:AnnotatedString}, pos::UnitRange{Int}=firstin
7878
end
7979

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

0 commit comments

Comments
 (0)