Files
macports-ports/python/py-numeric/files/patch-Src-arrayobject.c.diff
T

21 lines
590 B
Diff

--- ./Src/arrayobject.c.orig 2005-11-11 20:30:18.000000000 +1300
+++ ./Src/arrayobject.c 2006-03-10 17:55:59.000000000 +1300
@@ -12,7 +12,7 @@
performance for heterogeneity.
*/
-/* $Id: arrayobject.c,v 1.107 2005/11/09 19:43:39 teoliphant Exp $ */
+/* $Id: arrayobject.c,v 1.108 2006/03/10 04:55:59 teoliphant Exp $ */
#include "Python.h"
#include <stddef.h>
@@ -1866,9 +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){
- Py_DECREF(v);
- }
+ Py_DECREF(v);
}