We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f71b58 commit 1abfb62Copy full SHA for 1abfb62
src/flint/types/fmpz_poly.pyx
@@ -157,10 +157,8 @@ cdef class fmpz_poly(flint_poly):
157
cdef fmpz x
158
cdef slong d
159
d = fmpz_poly_degree(self.val)
160
- if d < 0:
161
- x = fmpz.__new__(fmpz)
162
- else:
163
+ x = fmpz.__new__(fmpz)
+ if d >= 0:
164
fmpz_poly_get_coeff_fmpz(x.val, self.val, d)
165
return x
166
0 commit comments