diff --git a/perf/src/sigverify.rs b/perf/src/sigverify.rs index 956a44d23b7e23..3d9ab51146522b 100644 --- a/perf/src/sigverify.rs +++ b/perf/src/sigverify.rs @@ -527,7 +527,7 @@ pub fn shrink_batches(batches: &mut Vec) -> usize { done = true; break; } - ii += 1; + ii = ii.saturating_add(1); } if ii >= batches[i].packets.len() { ii = 0; @@ -539,7 +539,7 @@ pub fn shrink_batches(batches: &mut Vec) -> usize { jj = 0; j = j.saturating_add(1); } - last + 1 + last.saturating_add(1) } pub fn ed25519_verify_cpu(batches: &mut [PacketBatch], reject_non_vote: bool, packet_count: usize) {