File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2219,7 +2219,7 @@ def proc_core_fields(filebytes, bpi):
2219
2219
2220
2220
# The current byte pair will contain either the actual d_sample + annotation store value,
2221
2221
# or 0 + SKIP.
2222
- while filebytes [bpi , 1 ] >> 2 == 59 :
2222
+ while int ( filebytes [bpi , 1 ]) >> 2 == 59 :
2223
2223
# 4 bytes storing dt
2224
2224
skip_diff = (
2225
2225
(int (filebytes [bpi + 1 , 0 ]) << 16 )
@@ -2237,7 +2237,9 @@ def proc_core_fields(filebytes, bpi):
2237
2237
2238
2238
# Not a skip - it is the actual sample number + annotation type store value
2239
2239
label_store = filebytes [bpi , 1 ] >> 2
2240
- sample_diff += int (filebytes [bpi , 0 ] + 256 * (filebytes [bpi , 1 ] & 3 ))
2240
+ sample_diff += np .int64 (filebytes [bpi , 0 ]) + 256 * np .int64 (
2241
+ filebytes [bpi , 1 ] & 3
2242
+ )
2241
2243
bpi = bpi + 1
2242
2244
2243
2245
return sample_diff , label_store , bpi
You can’t perform that action at this time.
0 commit comments