From fe3bae928d98bcbca73061d5d3a20cd8e5f4ca3c Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 18 Sep 2020 23:56:39 +0800 Subject: [PATCH] update compat patch version on #133 --- src/axes.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/axes.jl b/src/axes.jl index 105fdb85..db78a70e 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -168,8 +168,9 @@ Base.show(io::IO, r::IdOffsetRange) = print(io, "OffsetArrays.IdOffsetRange(",fi # Optimizations @inline Base.checkindex(::Type{Bool}, inds::IdOffsetRange, i::Real) = Base.checkindex(Bool, inds.parent, i - inds.offset) -if VERSION < v"1.6.0-DEV.762" +if VERSION < v"1.5.2" # issue 100, 133: IdOffsetRange as another index-preserving case shouldn't comtribute offsets + # fixed by https://github.com/JuliaLang/julia/pull/37204 @inline Base.compute_offset1(parent, stride1::Integer, dims::Tuple{Int}, inds::Tuple{IdOffsetRange}, I::Tuple) = Base.compute_linindex(parent, I) - stride1*first(inds[1]) end