From b36f02b9246aacaac2ee999995694cc6868eb81b Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 6 Jun 2019 16:27:39 +0300 Subject: BUG: fix compilation of 3rdparty modules with Py_LIMITED_API enabled There are no macros PyTuple_GET_SIZE and PyTuple_GET_ITEM available when compiling with enabled Py_LIMITED_API. --- numpy/core/include/numpy/ndarrayobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/include') diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h index 45f008b1d..2cc7ced35 100644 --- a/numpy/core/include/numpy/ndarrayobject.h +++ b/numpy/core/include/numpy/ndarrayobject.h @@ -233,10 +233,10 @@ static NPY_INLINE int NPY_TITLE_KEY_check(PyObject *key, PyObject *value) { PyObject *title; - if (PyTuple_GET_SIZE(value) != 3) { + if (PyTuple_Size(value) != 3) { return 0; } - title = PyTuple_GET_ITEM(value, 2); + title = PyTuple_GetItem(value, 2); if (key == title) { return 1; } -- cgit v1.2.1