From 7903895c240c2acd497ddac19be969c612411a1d Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 14 Apr 2017 15:46:02 -0700 Subject: [PATCH] Fix GL interop on Windows Fix OverflowError: int too big to convert Cast unsigned integer Windows handle to signed integer cl_context_properties --- pyopencl/cffi_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index f4d55faa..d45d8674 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -732,7 +732,7 @@ def _parse_context_properties(properties): props.append(value.int_ptr) elif prop == getattr(context_properties, "WGL_HDC_KHR", None): - props.append(value) + props.append(ctypes.c_ssize_t(value).value) elif prop in [getattr(context_properties, key, None) for key in ( 'CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE', -- GitLab