Skip to content

Commit 7d5946b

Browse files
committed
Fix indexing again
1 parent 5d4d2b0 commit 7d5946b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/instrument/site_array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ _equalorin(x::Real, y) = x ∈ y
128128
_equalorin(x, y::Real) = y x
129129
_equalorin(x, y) = y x
130130
_equalorin(x, ::typeof(Base.Colon())) = true
131+
_equalorin(::typeof(Base.Colon()), x) = true
131132
const Indexable = Union{Integer, AbstractArray{<:Integer}, BitArray}
132133

133134
function Base.getindex(arr::SiteArray; Fr=Base.Colon(), S=Base.Colon(), Ti=Base.Colon())

0 commit comments

Comments
 (0)