summaryrefslogtreecommitdiff
blob: a67d5b4f501e0606d7dfe231b23a9bf608ba4971 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Numeric-24.2/Src/arrayobject.c	2005-11-11 07:30:18.000000000 +0000
+++ Numeric-24.2.new/Src/arrayobject.c	2006-06-06 19:13:58.000000000 +0100
@@ -1866,7 +1866,7 @@
     for (i=0; i<sz; i++) {
 	v=array_item((PyArrayObject *)self, i);
 	PyList_SetItem(lp, i, PyArray_ToList(v));
-	if (((PyArrayObject *)self)->nd>1){
+	if (((PyArrayObject *)self)->nd>0){
 	    Py_DECREF(v);
 	}
     }