diff --git a/go/rawcuml4go/device_memory.go b/go/rawcuml4go/device_memory.go index c0ee014..0c35cda 100644 --- a/go/rawcuml4go/device_memory.go +++ b/go/rawcuml4go/device_memory.go @@ -70,7 +70,7 @@ func UseArenaMemoryResource(arena_size uint64) ( error, ) { var pointer C.DeviceMemoryResource - ret := C.UseArenaMemoryResource(&pointer, arena_size) + ret := C.UseArenaMemoryResource(&pointer, (C.size_t)(arena_size)) if ret != 0 { return nil, ErrGetDeviceMemoryResource }