From 73f7f1ea80e5285ce899d4ae757c51e14b7846dd Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Fri, 11 Feb 2022 11:39:13 -0800 Subject: [PATCH] fixup --- perf/src/sigverify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {