]> www.ginac.de Git - ginac.git/blobdiff - ginac/factor.cpp
[PATCH] Resolve ambiguous overload.
[ginac.git] / ginac / factor.cpp
index a07a42b099884911086f348847ad8626ef12af38..cb25f8161b329bac09731c888f2c9d93058a768c 100644 (file)
@@ -2394,7 +2394,7 @@ static ex factor_multivariate(const ex& poly, const exset& syms)
                ctx.vn = ctx.pp.collect(x).lcoeff(x);
                ctx.vnlst = put_factors_into_vec(factor(ctx.vn));
 
-               ctx.modulus = (ctx.vnlst.size() > 3) ? ctx.vnlst.size() : 3;
+               ctx.modulus = (ctx.vnlst.size() > 3) ? ctx.vnlst.size() : numeric(3);
 
                ctx_in_x.push_back(ctx);
        }