Skip to content

Commit

Permalink
Fix unsigned integer overflow error...
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Aug 25, 2023
1 parent ffbaf89 commit 6070991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qupulse/utils/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def _shrink_overlapping_windows_numba(begins, lengths) -> bool:
for idx in range(len(begins) - 1):
end = begins[idx] + lengths[idx]
next_begin = begins[idx + 1]
overlap = end - next_begin

if overlap > 0:
if end > next_begin:
overlap = end - next_begin
shrank = True
if lengths[idx + 1] > overlap:
begins[idx + 1] += overlap
Expand Down

0 comments on commit 6070991

Please sign in to comment.