8000 BUG: fix compilation of 3rd party modules with Py_LIMITED_API enabled by mshabunin · Pull Request #13725 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix compilation of 3rd party modules with Py_LIMITED_API enabled #13725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
mshabunin committed Jun 13, 2019
commit b36f02b9246aacaac2ee999995694cc6868eb81b
4 changes: 2 additions & 2 deletions numpy/core/include/numpy/ndarrayobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
0