]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/primpart_content.cpp
primpart_content: correctly handle monomials.
[ginac.git] / ginac / polynomial / primpart_content.cpp
index f703ee709d38a2874ec78384a817b5a3baf7015d..694f29d66dac1e365b6df40eaf5a6d2ed5d07214 100644 (file)
@@ -62,7 +62,7 @@ void primpart_content(ex& pp, ex& c, ex e, const exvector& vars,
                // p_1(x_n) p_2(x_0, \ldots, x_{n-1})
                c = ec.rbegin()->second;
                ec.rbegin()->second = ex1;
-               pp = ex_collect_to_ex(ec, vars).expand().smod(numeric(p));
+               pp = ex_collect_to_ex(ec, rest_vars).expand().smod(numeric(p));
                return;
        }