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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 6 19:09:04 CDT 2006


Author: oliphant
Date: 2006-10-06 19:09:02 -0500 (Fri, 06 Oct 2006)
New Revision: 3269

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Fix ticket #324: not returning minimum array.

Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2006-10-06 18:56:24 UTC (rev 3268)
+++ trunk/numpy/core/src/multiarraymodule.c	2006-10-07 00:09:02 UTC (rev 3269)
@@ -5180,7 +5180,7 @@
 			else {
 				ret = PyArray_NewCopy((PyArrayObject*)op,
 						      order);
-				if (oldtype == type) return ret;
+				if (oldtype == type) goto finish;
 				Py_INCREF(oldtype);
 				Py_DECREF(PyArray_DESCR(ret));
 				PyArray_DESCR(ret) = oldtype;



More information about the Numpy-svn mailing list