Contents of /trunk/numeric/patches/numeric-24.2-arrayobject.patch
Parent Directory | Revision Log
Revision 361 -
(show annotations)
(download)
Tue Sep 25 20:32:31 2007 UTC (17 years ago) by niro
File size: 462 byte(s)
Tue Sep 25 20:32:31 2007 UTC (17 years ago) by niro
File size: 462 byte(s)
-ver bump to 24.2-r1
1 | diff -Naur Numeric-24.2/Src/arrayobject.c Numeric-24.2-new/Src/arrayobject.c |
2 | --- Numeric-24.2/Src/arrayobject.c 2005-11-11 02:30:18.000000000 -0500 |
3 | +++ Numeric-24.2-new/Src/arrayobject.c 2007-09-01 22:52:50.000000000 -0400 |
4 | @@ -1866,9 +1866,7 @@ |
5 | for (i=0; i<sz; i++) { |
6 | v=array_item((PyArrayObject *)self, i); |
7 | PyList_SetItem(lp, i, PyArray_ToList(v)); |
8 | - if (((PyArrayObject *)self)->nd>1){ |
9 | - Py_DECREF(v); |
10 | - } |
11 | + Py_DECREF(v); |
12 | } |
13 | |
14 | return lp; |