Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-irfan committed Dec 17, 2024
1 parent 1f2bf29 commit a3c127f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/polyxx/upolynomial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ namespace poly {

std::vector<Integer> coefficients(const UPolynomial& p) {
std::vector<lp_integer_t> coeffs;
lp_integer_t *tmp = nullptr;
lp_integer_t tmp;
for (std::size_t i = 0; i < degree(p) + 1; ++i) {
lp_integer_construct_from_int(lp_Z, tmp, 0);
coeffs.push_back(*tmp);
lp_integer_construct_from_int(lp_Z, &tmp, 0);
coeffs.push_back(tmp);
}
lp_upolynomial_unpack(p.get_internal(), coeffs.data());
std::vector<Integer> res;
Expand Down

0 comments on commit a3c127f

Please sign in to comment.