Skip to content

Commit

Permalink
Update src/OffsetArrays.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Chen <johnnychen94@hotmail.com>
  • Loading branch information
jishnub and johnnychen94 authored Jun 14, 2021
1 parent b23f45d commit fd89ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OffsetArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ end

# These methods are added to avoid ambiguities with Base.
# The ones involving Base types should be ported to Base and version-limited here
@inline Base.getindex(r::IdentityUnitRange, s::IIUR) = _boundscheck_return(r, s)
@inline Base.getindex(r::IdentityUnitRange, s::IIUR) = _boundscheck_return(r, s) # FIXME: type piracy
@inline Base.getindex(r::IdentityUnitRange, s::IdOffsetRange) = _boundscheck_return(r, s)
if IdentityUnitRange !== Base.Slice
@inline Base.getindex(r::Base.Slice, s::IIUR) = _boundscheck_return(r, s)
Expand Down

0 comments on commit fd89ee3

Please sign in to comment.