From e115f31dec1452e03170d940653a314eca5d6258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 25 Oct 2024 10:50:13 +0200 Subject: [PATCH] fix --- src/arb/acb_poly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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