Skip to content

Commit

Permalink
Fix deprecated inner-constructor syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored and vchuravy committed Feb 17, 2017
1 parent 8e0a006 commit 7c9a620
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ if !debugMemory
dev::Int
end
else
type CudaArray{T,N} <: AbstractCudaArray{T,N}
@compat type CudaArray{T,N} <: AbstractCudaArray{T,N}
ptr::CudaPtr{T}
dims::NTuple{N,Int}
dev::Int
bt

function CudaArray(ptr::CudaPtr{T}, dims::NTuple{N,Int}, dev::Integer)
new(ptr, dims, dev, backtrace())
function (::Type{CudaArray{T,N}}){T,N}(ptr::CudaPtr{T}, dims::NTuple{N,Int}, dev::Integer)
new{T,N}(ptr, dims, dev, backtrace())
end
end
end
Expand All @@ -49,14 +49,14 @@ if !debugMemory
dev::Int
end
else
type CudaPitchedArray{T,N} <: AbstractCudaArray{T,N}
@compat type CudaPitchedArray{T,N} <: AbstractCudaArray{T,N}
ptr::rt.cudaPitchedPtr
dims::NTuple{N,Int}
dev::Int
bt

function CudaPitchedArray(ptr::rt.cudaPitchedPtr, dims::NTuple{N,Int}, dev::Integer)
new(ptr, dims, dev, backtrace())
function (::Type{CudaPitchedArray{T,N}}){T,N}(ptr::rt.cudaPitchedPtr, dims::NTuple{N,Int}, dev::Integer)
new{T,N}(ptr, dims, dev, backtrace())
end
end
end
Expand Down

0 comments on commit 7c9a620

Please sign in to comment.