diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2021-02-23 19:37:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 19:37:14 -0800 |
commit | a343d3beaf6c423904a7af917a9530f1c830558c (patch) | |
tree | 787b29167b9928b5ede64cc9d27cfa6553f8cbf6 /numpy | |
parent | 10e43ca5882a22de3ef9082ffce82c65c3261b8f (diff) | |
download | numpy-a343d3beaf6c423904a7af917a9530f1c830558c.tar.gz |
MAINT: remove nonsensical comparison of pointer < 0
Diffstat (limited to 'numpy')
-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 c98d27512..52f21b61f 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -552,7 +552,7 @@ PyArray_AssignFromCache_Recursive( else { PyArrayObject *view; view = (PyArrayObject *)array_item_asarray(self, i); - if (view < 0) { + if (view == NULL) { goto fail; } if (PyArray_AssignFromCache_Recursive(view, ndim, cache) < 0) { |