diff --git a/src/wrapper/wrap_cl.hpp b/src/wrapper/wrap_cl.hpp index dbf312a48fa655bec817757fd0f174e0a04572e4..4f07f1d71a6b02da696fcd335b1808c951da73e1 100644 --- a/src/wrapper/wrap_cl.hpp +++ b/src/wrapper/wrap_cl.hpp @@ -729,8 +729,9 @@ namespace pyopencl #if defined(_WIN32) else if (prop == CL_WGL_HDC_KHR) { - HANDLE hnd = py::extract<HANDLE>(prop_tuple[1]); - props.push_back(hnd); + // size_t is a stand-in for HANDLE, hopefully has the same size. + size_t hnd = py::extract<size_t>(prop_tuple[1]); + props.push_back(hnd); } #endif #endif