Skip to content

Commit

Permalink
fix overflow in AutoInterpretation for certain signals
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Dec 23, 2020
1 parent 6f50d09 commit 7d2e41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urh/cythonext/auto_interpretation.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cpdef np.ndarray[np.uint64_t, ndim=1] merge_plateaus(np.ndarray[np.uint64_t, ndi
n += 2

tmp_sum = 0
for j in range(i - 1, i + n):
for j in range(i - 1, min(L, i + n)):
tmp_sum += plateaus[j]

result[current] = tmp_sum
Expand Down

0 comments on commit 7d2e41b

Please sign in to comment.