From 62923ac249c7e4f7e824bc37030ac79bab3675f3 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Mon, 29 Sep 2008 09:58:35 +0400 Subject: [PATCH] [bugfix] remainder_in_ring: using exact division is plain wrong. --- ginac/polynomial/remainder.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/polynomial/remainder.tcc b/ginac/polynomial/remainder.tcc index 4db2843b..60767dc0 100644 --- a/ginac/polynomial/remainder.tcc +++ b/ginac/polynomial/remainder.tcc @@ -90,7 +90,7 @@ bool remainder_in_ring(T& r, const T& a, const T& b) if (zerop(r[k])) continue; - const ring_t qk = div(r[k], b_lcoeff); + const ring_t qk = truncate1(r[k], b_lcoeff); // Why C++ is so off-by-one prone? for (std::size_t j = k, i = b.size(); i-- != 0; --j) { -- 2.49.0