diff options
-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; } } |