Skip to content

Commit 51deda0

Browse files
authored
update compat patch version on #133 (#152)
1 parent b6a4f49 commit 51deda0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/axes.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ Base.show(io::IO, r::IdOffsetRange) = print(io, "OffsetArrays.IdOffsetRange(",fi
174174
# Optimizations
175175
@inline Base.checkindex(::Type{Bool}, inds::IdOffsetRange, i::Real) = Base.checkindex(Bool, inds.parent, i - inds.offset)
176176

177-
if VERSION < v"1.6.0-DEV.762"
177+
if VERSION < v"1.5.2"
178178
# issue 100, 133: IdOffsetRange as another index-preserving case shouldn't comtribute offsets
179+
# fixed by https://github.com/JuliaLang/julia/pull/37204
179180
@inline Base.compute_offset1(parent, stride1::Integer, dims::Tuple{Int}, inds::Tuple{IdOffsetRange}, I::Tuple) =
180181
Base.compute_linindex(parent, I) - stride1*first(inds[1])
181182
end

0 commit comments

Comments
 (0)