From 809455ee5c08129ee64b260632e392344eb40d35 Mon Sep 17 00:00:00 2001 From: FT <140458077+zeevick10@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:53:28 +0200 Subject: [PATCH 1/2] Update set_commitment_gadget.tcc --- .../gadgetlib1/gadgets/set_commitment/set_commitment_gadget.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsnark/gadgetlib1/gadgets/set_commitment/set_commitment_gadget.tcc b/libsnark/gadgetlib1/gadgets/set_commitment/set_commitment_gadget.tcc index d1005e37..c286bcc9 100644 --- a/libsnark/gadgetlib1/gadgets/set_commitment/set_commitment_gadget.tcc +++ b/libsnark/gadgetlib1/gadgets/set_commitment/set_commitment_gadget.tcc @@ -96,7 +96,7 @@ void test_set_commitment_gadget() element_bits.allocate(pb, value_size, "element_bits"); set_commitment_variable root_digest(pb, digest_len, "root_digest"); - pb_variable check_succesful; + pb_variable check_successful; check_succesful.allocate(pb, "check_succesful"); set_membership_proof_variable proof(pb, max_set_size, "proof"); From d366145495fd3fe959e87622b9579e9508c58deb Mon Sep 17 00:00:00 2001 From: FT <140458077+zeevick10@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:58:41 +0200 Subject: [PATCH 2/2] Update sparse_vector.tcc --- libsnark/common/data_structures/sparse_vector.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsnark/common/data_structures/sparse_vector.tcc b/libsnark/common/data_structures/sparse_vector.tcc index d99241c4..8c304467 100644 --- a/libsnark/common/data_structures/sparse_vector.tcc +++ b/libsnark/common/data_structures/sparse_vector.tcc @@ -196,7 +196,7 @@ std::pair > sparse_vector::accumulate(const typename std: const size_t range_len = it_end - it_begin; bool in_block = false; - size_t first_pos = -1, last_pos = -1; // g++ -flto emits unitialized warning, even though in_block guards for such cases. + size_t first_pos = -1, last_pos = -1; // g++ -flto emits uninitialized warning, even though in_block guards for such cases. for (size_t i = 0; i < indices.size(); ++i) {