8000 BUG: fix compilation of 3rdparty modules with Py_LIMITED_API enabled · numpy/numpy@b36f02b · GitHub
[go: up one dir, main page]

Skip to content

Commit b36f02b

Browse files
committed
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.
1 parent 2d4975e commit b36f02b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/include/numpy/ndarrayobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ static NPY_INLINE int
233233
NPY_TITLE_KEY_check(PyObject *key, PyObject *value)
234234
{
235235
PyObject *title;
236-
if (PyTuple_GET_SIZE(value) != 3) {
236+
if (PyTuple_Size(value) != 3) {
237237
return 0;
238238
}
239-
title = PyTuple_GET_ITEM(value, 2);
239+
title = PyTuple_GetItem(value, 2);
240240
if (key == title) {
241241
return 1;
242242
}

0 commit comments

Comments
 (0)
0