diff --git a/src/arb/acb_poly.jl b/src/arb/acb_poly.jl index c7e01c397..6e52240f4 100644 --- a/src/arb/acb_poly.jl +++ b/src/arb/acb_poly.jl @@ -623,8 +623,8 @@ function roots(x::AcbPolyRingElem; target=0, isolate_real=false, initial_prec=0, if real_ok for i = 0 : deg - 1 im = _imag_ptr(roots + i * sizeof(acb_struct)) - if ccall((:arb_contains_zero, libflint), Bool, (Ptr{ArbFieldElem}, ), im) - zero!(im) + if ccall((:arb_contains_zero, libflint), Bool, (Ptr{acb_struct}, ), im) + ccall((:arb_zero, libflint), Nothing, (Ptr{acb_struct}, ), im) end end end