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

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Sep 6 10:33:37 CDT 2006


Author: oliphant
Date: 2006-09-06 10:33:22 -0500 (Wed, 06 Sep 2006)
New Revision: 3125

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix segfault in BroadcastToShape

Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2006-09-06 05:56:32 UTC (rev 3124)
+++ trunk/numpy/core/src/arrayobject.c	2006-09-06 15:33:22 UTC (rev 3125)
@@ -8692,7 +8692,7 @@
                         it->dims_m1[i];
                 if (i > 0)
                         it->factors[nd-i-1] = it->factors[nd-i] *       \
-                                it->ao->dimensions[nd-i];
+                                dims[nd-i];
         }
         PyArray_ITER_RESET(it);
 



More information about the Numpy-svn mailing list