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: check for errors after PyArray_DESCR_REPLACE #12588

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

charris
Copy link
Member

@charris charris commented Dec 18, 2018

Backport of #12546.

PyArray_DESCR_REPLACE(descr) is a macro that calls PyArray_DescrNew. Since PyArray_DescrNew can error, we must check the return value.

Refactored out of #12430

@charris charris added this to the 1.16.0 release milestone Dec 18, 2018
@charris charris merged commit 4cc0665 into numpy:maintenance/1.16.x Dec 18, 2018
@charris charris deleted the backport-12546 branch December 18, 2018 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants