diff --git a/src/c_wrapper/clhelper.h b/src/c_wrapper/clhelper.h index d8e5556bfb53125efcc2888317c6fbf6b6901600..1460d2ad175ce05b0ad55f4f5e67666bad23b745 100644 --- a/src/c_wrapper/clhelper.h +++ b/src/c_wrapper/clhelper.h @@ -136,7 +136,7 @@ get_opaque_info(cl_int (*func)(ArgTypes...), const char *name, { typename CLObj::cl_type param_value; call_guarded(func, name, args..., sizeof(param_value), - out_arg(¶m_value), nullptr); + arg_buf(param_value), nullptr); generic_info info; info.dontfree = 0; info.opaque_class = CLObj::class_id; @@ -178,7 +178,7 @@ get_int_info(cl_int (*func)(ArgTypes...), const char *name, { pyopencl_buf<T> param_value; call_guarded(func, name, args..., sizeof(T), - out_arg(param_value.get()), nullptr); + arg_buf(*param_value.get()), nullptr); generic_info info; info.dontfree = 0; info.opaque_class = CLASS_NONE;