Skip to content

Conversation

@cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Feb 24, 2021

No description provided.

if (arg_dtypes != NULL) {
if (current->arg_dtypes == NULL) {
PyErr_NoMemory();
result = -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the assignment current->nargs = ufunc->nargs; is harmless, but it might be better to future-proof this by adding goto done; when an error condition is reached.

@charris charris added 09 - Backport-Candidate PRs tagged should be backported component: numpy._core labels Feb 24, 2021
@charris charris added this to the 1.20.2 release milestone Feb 24, 2021
@mattip mattip merged commit 2eb2e93 into numpy:master Feb 24, 2021
@mattip
Copy link
Member

mattip commented Feb 24, 2021

Thanks @cgohlke

result = -1;
goto done;
}
else if (arg_dtypes != NULL) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else isn't needed here.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 25, 2021
@charris charris removed this from the 1.20.2 release milestone Feb 25, 2021
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.

3 participants