Skip to content

Commit

Permalink
Fix bug in device_memory.go (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
getumen authored Aug 2, 2024
1 parent 7ab5629 commit 6a33a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/rawcuml4go/device_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6a33a6b

Please sign in to comment.