Skip to content

Commit e8f4df9

Browse files
authored
Merge pull request #21834 from hoodmane/fix-qhull-version-args
MAINT Fix signature qhull version function
2 parents 05b56ea + 893e24b commit e8f4df9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qhull_wrap.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,14 @@ delaunay(PyObject *self, PyObject *args)
295295

296296
/* Return qhull version string for assistance in debugging. */
297297
static PyObject*
298-
version(void)
298+
version(PyObject *self, PyObject *arg)
299299
{
300300
return PyBytes_FromString(qh_version);
301301
}
302302

303303
static PyMethodDef qhull_methods[] = {
304-
{"delaunay", (PyCFunction)delaunay, METH_VARARGS, ""},
305-
{"version", (PyCFunction)version, METH_NOARGS, ""},
304+
{"delaunay", delaunay, METH_VARARGS, ""},
305+
{"version", version, METH_NOARGS, ""},
306306
{NULL, NULL, 0, NULL}
307307
};
308308

0 commit comments

Comments
 (0)