From 04616496fc02966946bb2249a8851e5b5fc61591 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Wed, 3 May 2023 16:28:32 +0000 Subject: [PATCH] fix per PR comments --- circuits/cpp/src/aztec3/circuits/kernel/public/.test.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/circuits/cpp/src/aztec3/circuits/kernel/public/.test.cpp b/circuits/cpp/src/aztec3/circuits/kernel/public/.test.cpp index 2b503f642143..517988667344 100644 --- a/circuits/cpp/src/aztec3/circuits/kernel/public/.test.cpp +++ b/circuits/cpp/src/aztec3/circuits/kernel/public/.test.cpp @@ -60,12 +60,11 @@ template std::array array_of_values(NT::uint32& count, NT::uint32 num_values_required = SIZE) { std::array values; - size_t ind = 0; - for (; ind < num_values_required; ind++) { - values[ind] = ++count; + for (size_t i = 0; i < num_values_required; i++) { + values[i] = ++count; } - for (; ind < SIZE; ind++) { - values[ind] = 0; + for (size_t i = num_values_required; i < SIZE; i++) { + values[i] = 0; } return values; }