diff options
author | Pat Gunn <pgunn01@gmail.com> | 2018-06-03 02:22:25 -0400 |
---|---|---|
committer | Pat Gunn <pgunn01@gmail.com> | 2018-06-03 02:22:25 -0400 |
commit | 7714db48cefa00cd395ea5a5ed2a2b6bfbc3211c (patch) | |
tree | 50dde6d77d7bdd5193f0d558fe845c403f1b5890 /numpy/core | |
parent | 309ffbc25119aab128d2b56c252ab2cef0821f45 (diff) | |
download | numpy-7714db48cefa00cd395ea5a5ed2a2b6bfbc3211c.tar.gz |
review
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/memmap.py | 2 |
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 |