diff --git a/h5pyd/_hl/dataset.py b/h5pyd/_hl/dataset.py index 332a80f..60cf61b 100644 --- a/h5pyd/_hl/dataset.py +++ b/h5pyd/_hl/dataset.py @@ -567,7 +567,7 @@ def size(self): """Numpy-style attribute giving the total dataset size""" if self._shape is None: return None - return numpy.prod(self._shape).item() + return numpy.prod(self._shape, dtype=np.int64).item() @property def nbytes(self):