Skip to content

Commit

Permalink
Warning fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iluvmagick authored and martun committed May 8, 2024
1 parent 94cf3bf commit f5e251e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/nil/crypto3/hash/block_to_field_elements_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f5e251e

Please sign in to comment.