Skip to content

Commit beb8827

Browse files
committed
another overflow
1 parent 0ae6e76 commit beb8827

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

neo/rawio/plexonrawio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ def _parse_header(self):
209209
for index, pos in enumerate(positions):
210210
bl_header = data[pos : pos + 16].view(DataBlockHeader)[0]
211211

212-
timestamp = bl_header["UpperByteOf5ByteTimestamp"] * 2**32 + bl_header["TimeStamp"]
212+
current_upper_byte_of_5_byte_timestamp = int(bl_header["UpperByteOf5ByteTimestamp"])
213+
current_bl_timestamp = int(bl_header["TimeStamp"])
214+
timestamp = current_upper_byte_of_5_byte_timestamp * 2**32 + current_bl_timestamp
213215
n1 = bl_header["NumberOfWaveforms"]
214216
n2 = bl_header["NumberOfWordsInWaveform"]
215217
sample_count = n1 * n2

0 commit comments

Comments
 (0)