Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 25, 2024
1 parent 4490472 commit e115f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arb/acb_poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e115f31

Please sign in to comment.