8000 Merge pull request #13725 from mshabunin/fix-limited-api-build · numpy/numpy@e5425cd · GitHub
[go: up one dir, main page]

Skip to content

Commit e5425cd

Browse files
authored
Merge pull request #13725 from mshabunin/fix-limited-api-build
BUG: fix compilation of 3rdparty modules with Py_LIMITED_API enabled
2 parents 02c8e80 + b36f02b commit e5425cd

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