Skip to content

Commit 2cbe578

Browse files
authored
Merge pull request #1642 from NinelK/NinelK-patch-int-overflow
Fix int overflow in blackrock
2 parents 467b946 + d3f5b3c commit 2cbe578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ def __read_nsx_dataheader_variant_b(
979979
# use of `int` avoids overflow problem
980980
data_size = int(dh["nb_data_points"]) * int(self.__nsx_basic_header[nsx_nb]["channel_count"]) * 2
981981
# define new offset (to possible next data block)
982-
offset = data_header[index]["offset_to_data_block"] + data_size
982+
offset = int(data_header[index]["offset_to_data_block"]) + data_size
983983

984984
index += 1
985985

0 commit comments

Comments
 (0)