diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/records.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py index db4a0fbd8..86a43306a 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -787,7 +787,7 @@ def fromfile(fd, dtype=None, shape=None, offset=0, formats=None, shapesize = shapeprod * itemsize if shapesize < 0: shape = list(shape) - shape[shape.index(-1)] = size / -shapesize + shape[shape.index(-1)] = size // -shapesize shape = tuple(shape) shapeprod = sb.array(shape).prod(dtype=nt.intp) |