summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 0e4300585..f19a47176 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -250,12 +250,11 @@ def byte_bounds(a):
a_data = ai['data'][0]
astrides = ai['strides']
ashape = ai['shape']
- nd_a = len(ashape)
bytes_a = int(ai['typestr'][2:])
a_low = a_high = a_data
if astrides is None: # contiguous case
- a_high += product(ashape, dtype=int)*bytes_a
+ a_high += a.size * bytes_a
else:
for shape, stride in zip(ashape, astrides):
if stride < 0: