Permalink
Browse files

Fix formula of entry size when g.t. 64K

  • Loading branch information...
1 parent f977424 commit 096097673527eedc0a27be8f8dbd268f101b6634 Anonymous Coward committed Jul 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 01A-EXTR-hed/tools/hedutil.py
@@ -86,7 +86,7 @@ def __init__(self, block, name=''):
if size_low == 0:
self.size = self.rounded_size
else:
- self.size = size_low | 0x800 * ((size_sect - 1) & 0xFFFF0000)
+ self.size = size_low | ((0x800 * (size_sect - 1)) & 0xFFFF0000)
elif len(block) == 4:
ofs_low, ofssz_high = unpack('<HH', block)

0 comments on commit 0960976

Please sign in to comment.