You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
95eba32f46
Closes https://trac.macports.org/ticket/13666 (thanks for the submission!). git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@33242 d073be05-634f-4543-b044-5fe20cf6d1d6
21 lines
590 B
Diff
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);
|
|
}
|