summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index ff816faf5..cc2afdbf4 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -87,7 +87,9 @@ def _array_descr(descriptor):
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: