Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed Aug 2, 2017
1 parent 1ec63e7 commit 7f87069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/libs/linkages/padics/fmpz_poly_unram.pxi
Expand Up @@ -595,7 +595,7 @@ cdef list ccoefficients(celement x, long valshift, long prec, PowComputer_ prime
else:
ansq = Rational.__new__(Rational)
fmpz_poly_get_coeff_mpz(mpq_numref(ansq.value), x, i)
mpz_set(mpq_denref(ansq.value), prime_pow.pow_mpz_t_tmp(valshift))
mpz_set(mpq_denref(ansq.value), prime_pow.pow_mpz_t_tmp(-valshift))
mpq_canonicalize(ansq.value)
ans.append(ansq)
return ans
Expand Down

0 comments on commit 7f87069

Please sign in to comment.