Skip to content

Commit d0c17a1

Browse files
committed
Use uninitialized for uninitialized array construction
1 parent e814a11 commit d0c17a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ 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, Compat.axes(x)))
39+
y = Array{T}(uninitialized, map(length, Compat.axes(x)))
4040
Base.circcopy!(y, x)
4141
end
4242

0 commit comments

Comments
 (0)