summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorMaksim Shabunin <maksim.shabunin@gmail.com>2019-06-06 16:27:39 +0300
committerMaksim Shabunin <maksim.shabunin@gmail.com>2019-06-13 11:21:04 +0300
commitb36f02b9246aacaac2ee999995694cc6868eb81b (patch)
tree3467bc8ce09207487305476520101878e0990fc8 /numpy/core
parent2d4975e75c210202293b894bf98faf12f4697a31 (diff)
downloadnumpy-b36f02b9246aacaac2ee999995694cc6868eb81b.tar.gz
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.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/include/numpy/ndarrayobject.h4
1 files changed, 2 insertions, 2 deletions
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;
}