[Numpy-svn] r3156 - trunk/numpy/core/src

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Sep 14 16:39:24 CDT 2006


Author: oliphant
Date: 2006-09-14 16:39:21 -0500 (Thu, 14 Sep 2006)
New Revision: 3156

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Eliminate unnecessary check.

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2006-09-14 18:55:14 UTC (rev 3155)
+++ trunk/numpy/core/src/arrayobject.c	2006-09-14 21:39:21 UTC (rev 3156)
@@ -6464,7 +6464,7 @@
         selfit = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self);
         if (selfit == NULL) goto exit;
 
-        if (arrit->size == 0 || selfit->size == 0) {
+        if (arrit->size == 0) {
                 PyErr_SetString(PyExc_ValueError, "trying to set with 0-sized array");
                 goto exit;
         }



More information about the Numpy-svn mailing list