summaryrefslogtreecommitdiff
path: root/numpy/lib/format.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-05-09 12:37:01 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-05-09 12:37:01 -0600
commitcb6a5bfb12d87949a2cb18a801e09a0e59c05200 (patch)
treee3e4326148e069ea7fd89eceb57aaf942acfb95b /numpy/lib/format.py
parent1b6bc8b2aa14bd228388568a95e6014578de77ad (diff)
parentda668fc74653e5caae9f741461c4d20f9df6e5c1 (diff)
downloadnumpy-cb6a5bfb12d87949a2cb18a801e09a0e59c05200.tar.gz
Merge pull request #7598 from drasmuss/master
Cast array size to int64 when loading from archive
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r--numpy/lib/format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index a0f2c5497..cfe0e62ac 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -623,7 +623,7 @@ def read_array(fp, allow_pickle=True, pickle_kwargs=None):
if len(shape) == 0:
count = 1
else:
- count = numpy.multiply.reduce(shape)
+ count = numpy.multiply.reduce(shape, dtype=numpy.int64)
# Now read the actual data.
if dtype.hasobject: