diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index 0a5f6abdde0855f4c1b1d53cbf06ed4ff60822bd..fe1a07f94bbf00bd76f74ee1376d0c02a7cca6f8 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -1987,7 +1987,7 @@ class Kernel(_Common): if arg is None: _handle_error(_lib.kernel__set_arg_null(self.ptr, arg_index)) elif isinstance(arg, _CLKernelArg): - self._set_arg_clkernelarg(self, arg_index, arg) + self._set_arg_clkernelarg(arg_index, arg) elif _CPY2 and isinstance(arg, np.generic): # https://github.com/numpy/numpy/issues/5381 c_buf, size, _ = _c_buffer_from_obj(np.getbuffer(arg))