summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/memmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index 91be84011..b2ff0e793 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -239,7 +239,7 @@ class memmap(ndarray):
else:
if not isinstance(shape, tuple):
shape = (shape,)
- size = np.intp(1) # Causes bytes below to be computed as the integer type the OS uses for sizes - can prevent overflow
+ size = np.intp(1) # avoid default choice of np.int_, which might overflow
for k in shape:
size *= k