From f5e251ee79b8c3a35c354d948c3593fff055bb40 Mon Sep 17 00:00:00 2001 From: Iluvmagick Date: Tue, 7 May 2024 23:11:52 +0400 Subject: [PATCH] Warning fix. --- include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp b/include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp index 3204eed..2ef8038 100644 --- a/include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp +++ b/include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp @@ -101,12 +101,10 @@ namespace nil { return; } value_type field_element = value_type::zero(); - std::size_t field_bits_left_ = Field::modulus_bits; auto tmp_iter = input_container_l_; for (std::size_t i = 0; i < container_elements_per_field_element_ && tmp_iter != input_container_r_; ++i) { field_element.data <<= input_value_bits_; // TODO: add shift operators to field values field_element += *tmp_iter++; - field_bits_left_ -= input_value_bits_; } field_element_ = field_element; element_filled_ = true;