Skip to content
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

BUG: Fix arr.flat.index for large arrays and big-endian machines #19347

Merged
merged 2 commits into from Jun 25, 2021

Conversation

charris
Copy link
Member

@charris charris commented Jun 25, 2021

Backport of #19276.

To do that, I have a first commit to introduce a new PyArray_PyIntFromIntp inline function, just because those #ifdef's everywhere are not very nice IMO.

Closes gh-19153

The type read when exposing was previously int, but has to be
intp.  this would only be visible for >2**31 elements, but is
also visible on big-endian machines.

Closes numpygh-19153
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jun 25, 2021
@charris charris added this to the 1.21.1 release milestone Jun 25, 2021
@charris charris merged commit b5e4172 into numpy:maintenance/1.21.x Jun 25, 2021
@charris charris deleted the backport-19276 branch June 25, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants