From 7870a5815dc759aed7097dc9eb5ab8e10b3a1865 Mon Sep 17 00:00:00 2001 From: Facundo Date: Wed, 10 Jul 2024 18:13:33 +0100 Subject: [PATCH] chore(bb): fix double increment (#7428) That I just introduced. --- barretenberg/cpp/src/barretenberg/common/ref_array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/cpp/src/barretenberg/common/ref_array.hpp b/barretenberg/cpp/src/barretenberg/common/ref_array.hpp index 4939b571686..3de5cd9bb66 100644 --- a/barretenberg/cpp/src/barretenberg/common/ref_array.hpp +++ b/barretenberg/cpp/src/barretenberg/common/ref_array.hpp @@ -25,7 +25,7 @@ template class RefArray { RefArray(const std::array& ptr_array) { for (std::size_t i = 0; i < N; ++i) { - storage[i++] = ptr_array[i]; + storage[i] = ptr_array[i]; } } template RefArray(T& ref, Ts&... rest)