Skip to content

Commit 94e701b

Browse files
committed
Add a comment about the reported issue in Base
1 parent 3102919 commit 94e701b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/axes.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ Base.show(io::IO, r::IdOffsetRange) = print(io, "OffsetArrays.IdOffsetRange(",fi
181181

182182
# issue 194
183183
# The indexing operation A[] gets mapped to A[1].
184-
# the bounds-checking for this needs to be handled separately for AbstractVectors
184+
# The bounds-checking for this needs to be handled separately for AbstractVectors
185+
# See https://github.com/JuliaLang/julia/issues/39379 for this issue reported in Base
186+
# Once a PR fixing it is merged, we may limit our fix to earlier Julia versions
185187
@inline function Base.checkbounds_indices(::Type{Bool}, IA::Tuple{IdOffsetRange}, ::Tuple{})
186188
x = IA[1]
187189
length(x) == 1 && first(x) == one(eltype(x))

0 commit comments

Comments
 (0)