diff --git a/src/qhull_wrap.cpp b/src/qhull_wrap.cpp index f219f88b4b14..cdebaf730493 100644 --- a/src/qhull_wrap.cpp +++ b/src/qhull_wrap.cpp @@ -295,14 +295,14 @@ delaunay(PyObject *self, PyObject *args) /* Return qhull version string for assistance in debugging. */ static PyObject* -version(void) +version(PyObject *self, PyObject *arg) { return PyBytes_FromString(qh_version); } static PyMethodDef qhull_methods[] = { - {"delaunay", (PyCFunction)delaunay, METH_VARARGS, ""}, - {"version", (PyCFunction)version, METH_NOARGS, ""}, + {"delaunay", delaunay, METH_VARARGS, ""}, + {"version", version, METH_NOARGS, ""}, {NULL, NULL, 0, NULL} };