Skip to content

Commit

Permalink
fix for file size larger than C long max size
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Jul 13, 2024
1 parent bcf5c15 commit 3c9a668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcfile/mrcmemmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _read_data(self):
def _open_memmap(self, dtype, shape):
"""Open a new memmap array pointing at the file's data block."""
acc_mode = 'r' if self._read_only else 'r+'
header_nbytes = self.header.nbytes + self.header.nsymbt
header_nbytes = int(self.header.nbytes + self.header.nsymbt)

self._iostream.flush()
try:
Expand Down

0 comments on commit 3c9a668

Please sign in to comment.