Skip to content

Commit 82a0026

Browse files
authored
version limit OrdinalRange{T,T}(::IdOffsetRange) (#291)
* version limit OrdinalRange{T,T}(::IdOffsetRange) * update comment
1 parent 26de770 commit 82a0026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/axes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ end
138138
# to evaluate CartesianIndices for BigInt ranges, as their axes are also BigInt ranges
139139
Base.AbstractUnitRange{T}(r::IdOffsetRange) where {T<:Integer} = IdOffsetRange{T}(r)
140140

141-
# A version upper bound on this may be set after https://github.com/JuliaLang/julia/pull/40038 is merged
142-
if v"1.6" <= VERSION
141+
# https://github.com/JuliaLang/julia/pull/40038
142+
if v"1.6" <= VERSION < v"1.9.0-DEV.642"
143143
Base.OrdinalRange{T,T}(r::IdOffsetRange) where {T<:Integer} = IdOffsetRange{T}(r)
144144
end
145145

0 commit comments

Comments
 (0)