Skip to content

Commit

Permalink
Fix two invmod methods: eval -> evaluate (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Nov 5, 2023
1 parent 04d5a3a commit dd6ac00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flint/fmpz_mod_poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ function invmod(x::T, y::T) where {T <: Zmodn_fmpz_poly}
length(y) == 0 && error("Second argument must not be 0")
check_parent(x, y)
if length(y) == 1
return parent(x)(inv(eval(x, coeff(y, 0))))
return parent(x)(inv(evaluate(x, coeff(y, 0))))
end
z = parent(x)()
r = ccall((:fmpz_mod_poly_invmod, libflint), Cint,
Expand Down
2 changes: 1 addition & 1 deletion src/flint/nmod_poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function invmod(x::T, y::T) where T <: Zmodn_poly
length(y) == 0 && error("Second argument must not be 0")
check_parent(x,y)
if length(y) == 1
return parent(x)(inv(eval(x, coeff(y, 0))))
return parent(x)(inv(evaluate(x, coeff(y, 0))))
end
z = parent(x)()
r = ccall((:nmod_poly_invmod, libflint), Int32,
Expand Down

0 comments on commit dd6ac00

Please sign in to comment.