Skip to content

Commit

Permalink
Fix incorrect dset size for large dsets on Windows (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala authored Mar 26, 2024
1 parent f69f3c6 commit 4162811
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 @@ -564,7 +564,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=numpy.int64).item()

@property
def nbytes(self):
Expand Down

0 comments on commit 4162811

Please sign in to comment.