Skip to content

Commit e814a11

Browse files
committed
Replace indices with Compat.axes
1 parent 249d071 commit e814a11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ realfloat(x::AbstractArray{T}) where {T<:Real} = copy1(typeof(fftfloat(zero(T)))
3636

3737
# copy to a 1-based array, using circular permutation
3838
function copy1(::Type{T}, x) where T
39-
y = Array{T}(map(length, indices(x)))
39+
y = Array{T}(map(length, Compat.axes(x)))
4040
Base.circcopy!(y, x)
4141
end
4242

43-
to1(x::AbstractArray) = _to1(indices(x), x)
43+
to1(x::AbstractArray) = _to1(Compat.axes(x), x)
4444
_to1(::Tuple{Base.OneTo,Vararg{Base.OneTo}}, x) = x
4545
_to1(::Tuple, x) = copy1(eltype(x), x)
4646

0 commit comments

Comments
 (0)