Skip to content

Commit

Permalink
Fix type mismatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Aug 16, 2018
1 parent a49599f commit 421f648
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions array.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ type Array3Desc struct {

func (desc Array3Desc) c() *C.CUDA_ARRAY3D_DESCRIPTOR {
return &C.CUDA_ARRAY3D_DESCRIPTOR{
Width: C.ulong(desc.Width),
Height: C.ulong(desc.Height),
Depth: C.ulong(desc.Depth),
Width: C.size_t(desc.Width),
Height: C.size_t(desc.Height),
Depth: C.size_t(desc.Depth),
Format: C.CUarray_format(desc.Format),
NumChannels: C.uint(desc.NumChannels),
Flags: C.uint(desc.Flags),
Expand Down Expand Up @@ -70,8 +70,8 @@ type ArrayDesc struct {

func (desc ArrayDesc) c() *C.CUDA_ARRAY_DESCRIPTOR {
return &C.CUDA_ARRAY_DESCRIPTOR{
Width: C.ulong(desc.Width),
Height: C.ulong(desc.Height),
Width: C.size_t(desc.Width),
Height: C.size_t(desc.Height),
Format: C.CUarray_format(desc.Format),
NumChannels: C.uint(desc.NumChannels),
}
Expand Down

0 comments on commit 421f648

Please sign in to comment.