Skip to content

Commit 5f6e2df

Browse files
authored
Merge branch 'master' into master
2 parents 02a5d2c + bcd05a3 commit 5f6e2df

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Interpolations"
22
uuid = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
3-
version = "0.12.9"
3+
version = "0.12.10"
44

55
[deps]
66
AxisAlgorithms = "13072b0f-2c55-5437-9ae7-d433b7a33950"

src/Interpolations.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ Base.:(/)(wi::WeightedArbIndex, x::Number) = WeightedArbIndex(wi.indexes, wi.wei
271271
# This is to avoid ambiguities with methods that specialize on the array type rather than
272272
# the index type.
273273
Base.to_indices(A, I::Tuple{Vararg{Union{Int,WeightedIndex}}}) = I
274-
@propagate_inbounds Base._getindex(::IndexLinear, A::AbstractVector, i::Int) = getindex(A, i) # ambiguity resolution
274+
if VERSION < v"1.6.0-DEV.104"
275+
@propagate_inbounds Base._getindex(::IndexLinear, A::AbstractVector, i::Int) = getindex(A, i) # ambiguity resolution
276+
end
275277
@inline function Base._getindex(::IndexStyle, A::AbstractArray{T,N}, I::Vararg{Union{Int,WeightedIndex},N}) where {T,N}
276278
interp_getindex(A, I, ntuple(d->0, Val(N))...)
277279
end

0 commit comments

Comments
 (0)