Skip to content

Commit d240e09

Browse files
committed
Add cast
1 parent ed44ae1 commit d240e09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/cuda/bindings/cyruntime.pyx.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCa
19011901
handle = <void *><uintptr_t>lib._handle_uint
19021902

19031903
{{if 'Windows' == platform.system()}}
1904-
__cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion')
1904+
__cudaRuntimeGetVersion = windll.GetProcAddress(<uintptr_t>handle, b'cudaRuntimeGetVersion')
19051905
{{else}}
19061906
__cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion')
19071907
{{endif}}

0 commit comments

Comments
 (0)