diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-09-30 18:37:47 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-09-30 18:39:25 +0200 |
commit | ebe4ce7a8517f247b8310ee886bb935d4c0d1550 (patch) | |
tree | 641e9df0a4500252cf49645480e6e7e691f18066 | |
parent | 0e195abba8b1a7744b0a3c4d5e9331a1b54d5541 (diff) | |
download | numpy-ebe4ce7a8517f247b8310ee886bb935d4c0d1550.tar.gz |
MAINT: fix another wrong NULL check
silences cppcheck error, not a bug as the only caller checks the python
error.
-rw-r--r-- | numpy/core/src/multiarray/ctors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 0a3534070..d0b75b47a 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -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; } } |