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 0d5ad6c commit 3178aa5Copy full SHA for 3178aa5
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