From f054dcc07036cea50ddc71a8ff3315cac171a68b Mon Sep 17 00:00:00 2001 From: mooresethmoore <54682711+mooresethmoore@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:30:59 -0600 Subject: [PATCH] Update python.cc Missing surrounding parenthesis for if statement on PyTuple_Check for python 3.9 or some versions of DCMAKE or CUDA_ARCH causes a build error. --- src/python.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python.cc b/src/python.cc index bafbbd9..96f71cc 100644 --- a/src/python.cc +++ b/src/python.cc @@ -199,7 +199,7 @@ static PyObject *py_kmeans_cuda(PyObject *self, PyObject *args, PyObject *kwargs if (!set_init(init_obj)) { return NULL; } - } else if PyTuple_Check(init_obj) { + } else if (PyTuple_Check(init_obj)) { auto e1 = PyTuple_GetItem(init_obj, 0); if (e1 == nullptr || e1 == Py_None) { PyErr_SetString(