summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPat Gunn <pgunn01@gmail.com>2018-06-03 02:22:25 -0400
committerPat Gunn <pgunn01@gmail.com>2018-06-03 02:22:25 -0400
commit7714db48cefa00cd395ea5a5ed2a2b6bfbc3211c (patch)
tree50dde6d77d7bdd5193f0d558fe845c403f1b5890 /numpy
parent309ffbc25119aab128d2b56c252ab2cef0821f45 (diff)
downloadnumpy-7714db48cefa00cd395ea5a5ed2a2b6bfbc3211c.tar.gz
review
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