]> www.ginac.de Git - ginac.git/commitdiff
[PATCH] Resolve ambiguous overload.
authorVladimir V. Kisil <V.Kisilv@leeds.ac.uk>
Sun, 12 Feb 2023 10:20:47 +0000 (11:20 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 12 Feb 2023 10:20:47 +0000 (11:20 +0100)
It confuses MinGW compiler on Windows from Qt suit.

Signed-off-by: Vladimir V. Kisil <V.Kisilv@leeds.ac.uk>
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);
        }