[Numpy-svn] r3161 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Sep 15 13:24:36 CDT 2006


Author: oliphant
Date: 2006-09-15 13:24:30 -0500 (Fri, 15 Sep 2006)
New Revision: 3161

Modified:
   trunk/numpy/core/_internal.py
Log:
Fix .descr of aligned structures

Modified: trunk/numpy/core/_internal.py
===================================================================
--- trunk/numpy/core/_internal.py	2006-09-15 18:05:27 UTC (rev 3160)
+++ trunk/numpy/core/_internal.py	2006-09-15 18:24:30 UTC (rev 3161)
@@ -87,7 +87,9 @@
     offset = 0
     for field in ordered_fields:
         if field[1] > offset:
-            result.append(('','|V%d' % (field[1]-offset)))
+            num = field[1] - offset
+            result.append(('','|V%d' % num))
+            offset += num
         if len(field) > 3:
             name = (field[2],field[3])
         else:



More information about the Numpy-svn mailing list