Skip to content

Commit

Permalink
Fixing lpc compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
martun committed Sep 13, 2024
1 parent b1df848 commit f63dcb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,11 @@ namespace nil {
}
if (i != fri_params.step_list.size() - 1) {
const auto& D = fri_params.D[t];
if (f.size() != D->size()) {
f.resize(D->size(), nullptr, D);
if constexpr (std::is_same<math::polynomial_dfs<typename FRI::field_type::value_type>,
PolynomialType>::value) {
if (f.size() != D->size()) {
f.resize(D->size(), nullptr, D);
}
}
precommitment = precommit<FRI>(f, D, fri_params.step_list[i + 1]);
}
Expand Down
6 changes: 3 additions & 3 deletions libs/zk/include/nil/crypto3/zk/commitments/polynomial/lpc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ namespace nil {

if constexpr (std::is_same<math::polynomial_dfs<value_type>, PolynomialType>::value) {
combined_Q.from_coefficients(combined_Q_normal);
if (combined_Q.size() != _fri_params.D[0]->size()) {
combined_Q.resize(_fri_params.D[0]->size(), nullptr, _fri_params.D[0]);
}
} else {
combined_Q = std::move(combined_Q_normal);
}

if (combined_Q.size() != _fri_params.D[0]->size()) {
combined_Q.resize(_fri_params.D[0]->size(), nullptr, _fri_params.D[0]);
}
return combined_Q;
}

Expand Down

0 comments on commit f63dcb3

Please sign in to comment.