Skip to content

Commit

Permalink
Fix incorrect dset size for large dsets on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Mar 26, 2024
1 parent fdf1e40 commit 7348bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5pyd/_hl/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7348bf1

Please sign in to comment.