Skip to content

Commit

Permalink
Simplfify fmpz_poly.leading_coefficient
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Aug 18, 2024
1 parent 0d5ad6c commit 3178aa5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/flint/types/fmpz_poly.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,8 @@ cdef class fmpz_poly(flint_poly):
cdef fmpz x
cdef slong d
d = fmpz_poly_degree(self.val)
if d < 0:
x = fmpz.__new__(fmpz)
else:
x = fmpz.__new__(fmpz)
x = fmpz.__new__(fmpz)
if d >= 0:
fmpz_poly_get_coeff_fmpz(x.val, self.val, d)
return x

Expand Down

0 comments on commit 3178aa5

Please sign in to comment.