Skip to content

Commit

Permalink
pp_Mult_qq: run _p_Mult_q_Normal_ZeroDiv on the copy of q
Browse files Browse the repository at this point in the history
Also makes sure to delete it if needed.

Fixes sagemath/sage#38158 (comment)
  • Loading branch information
antonio-rojas committed Aug 2, 2024
1 parent d251900 commit f88ab1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpolys/polys/monomials/p_polys.h
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ static inline poly pp_Mult_qq(poly p, poly q, const ring r)
#endif
#ifdef HAVE_RINGS
if (UNLIKELY(!nCoeff_is_Domain(r->cf)))
return _p_Mult_q_Normal_ZeroDiv(p, q, 1, r);
res = _p_Mult_q_Normal_ZeroDiv(p, qq, 1, r);
else
#endif
res = _p_Mult_q(p, qq, 1, r);
Expand Down

0 comments on commit f88ab1e

Please sign in to comment.