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

Commit

Permalink
Fix deprecated inner-constructor syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Feb 13, 2017
1 parent b535223 commit f09ad79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct CuDeviceArray{T,N} <: AbstractArray{T,N}
shape::NTuple{N,Int}
ptr::Ptr{T}

CuDeviceArray(shape::NTuple{N,Int}, ptr::Ptr{T}) = new(shape, ptr)
CuDeviceArray{T,N}(shape::NTuple{N,Int}, ptr::Ptr{T}) where {T,N} = new(shape, ptr)
end

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

0 comments on commit f09ad79

Please sign in to comment.