Skip to content

Commit

Permalink
MAINT: fix another wrong NULL check
Browse files Browse the repository at this point in the history
silences cppcheck error, not a bug as the only caller checks the python
error.
  • Loading branch information
juliantaylor committed Sep 30, 2013
1 parent 0e195ab commit ebe4ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/ctors.c
Expand Up @@ -2960,7 +2960,7 @@ _calc_length(PyObject *start, PyObject *stop, PyObject *step, PyObject **next, i
}
if (len > 0) {
*next = PyNumber_Add(start, step);
if (!next) {
if (!*next) {
return -1;
}
}
Expand Down

0 comments on commit ebe4ce7

Please sign in to comment.