]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/mgcd.cpp
[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.
[ginac.git] / ginac / polynomial / mgcd.cpp
index 7500805e4129cdf008226b50702c3ed39465fbf8..901f075a943f467355752a961183c62d83d0ad56 100644 (file)
@@ -101,7 +101,7 @@ ex chinrem_gcd(const ex& A_, const ex& B_, const exvector& vars)
                Cp = (Cp*numeric(nlc)).expand().smod(pnum);
                exp_vector_t cp_deg = degree_vector(Cp, vars);
                if (zerop(cp_deg))
-                       return numeric(g_lc);
+                       return numeric(c);
                if (zerop(q)) {
                        H = Cp;
                        n = cp_deg;