Skip to content

Commit 141850d

Browse files
authored
Address some 0.7 deprecations (#12)
1 parent e8838e4 commit 141850d

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
julia 0.6 0.7.0-DEV.602 0.7.0-DEV.3449
2+
Compat 0.59.0

src/AbstractFFTs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
__precompile__()
22
module AbstractFFTs
33

4+
using Compat
5+
46
# After this version, the bindings can overwrite deprecated bindings in Base safely, but
57
# prior to it we want to extend/reexport the Base definitions
68
if VERSION < v"0.7.0-DEV.602"

src/definitions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ realfloat(x::AbstractArray{T}) where {T<:Real} = copy1(typeof(fftfloat(zero(T)))
3434

3535
# copy to a 1-based array, using circular permutation
3636
function copy1(::Type{T}, x) where T
37-
y = Array{T}(uninitialized, map(length, axes(x)))
37+
y = Array{T}(undef, map(length, axes(x)))
3838
Base.circcopy!(y, x)
3939
end
4040

test/REQUIRE

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using AbstractFFTs
44
using AbstractFFTs: Plan
5+
using Compat
56
using Compat.LinearAlgebra
67
using Compat.Test
78

0 commit comments

Comments
 (0)