summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-27 20:43:01 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-27 20:43:01 +0000
commitcc32637e236429e582db471837cc6bb85b2df1b4 (patch)
tree1191fe2e0b9548f8a20921ebc11b70b8677f836e /numpy/core/src/arrayobject.c
parent791fa388df16051e1f25d41d42dc9ab62a9ad704 (diff)
downloadnumpy-cc32637e236429e582db471837cc6bb85b2df1b4.tar.gz
scalar value doesn't fail.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index f045dfc34..311b7117e 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -1432,7 +1432,6 @@ PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base)
}
else {
destptr = scalar_value(obj, descr);
- if (destptr == NULL) {Py_DECREF(obj); return NULL;}
}
/* copyswap for OBJECT increments the reference count */
copyswap(destptr, data, swap, base);