Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit f09ad79

Browse files
committed
Fix deprecated inner-constructor syntax.
Ref JuliaLang/julia#20308
1 parent b535223 commit f09ad79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/array.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct CuDeviceArray{T,N} <: AbstractArray{T,N}
1010
shape::NTuple{N,Int}
1111
ptr::Ptr{T}
1212

13-
CuDeviceArray(shape::NTuple{N,Int}, ptr::Ptr{T}) = new(shape, ptr)
13+
CuDeviceArray{T,N}(shape::NTuple{N,Int}, ptr::Ptr{T}) where {T,N} = new(shape, ptr)
1414
end
1515

1616
(::Type{CuDeviceArray{T}}){T,N}(shape::NTuple{N,Int}, p::Ptr{T}) = CuDeviceArray{T,N}(shape, p)

0 commit comments

Comments
 (0)