summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2021-02-23 19:37:14 -0800
committerGitHub <noreply@github.com>2021-02-23 19:37:14 -0800
commita343d3beaf6c423904a7af917a9530f1c830558c (patch)
tree787b29167b9928b5ede64cc9d27cfa6553f8cbf6 /numpy
parent10e43ca5882a22de3ef9082ffce82c65c3261b8f (diff)
downloadnumpy-a343d3beaf6c423904a7af917a9530f1c830558c.tar.gz
MAINT: remove nonsensical comparison of pointer < 0
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/ctors.c2
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) {