From: Vladimir V. Kisil Date: Sun, 12 Feb 2023 10:20:47 +0000 (+0100) Subject: [PATCH] Resolve ambiguous overload. X-Git-Tag: release_1-8-7~6 X-Git-Url: https://ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=586309024f43e28dee484e231e88b85bc2d646bc [PATCH] Resolve ambiguous overload. It confuses MinGW compiler on Windows from Qt suit. Signed-off-by: Vladimir V. Kisil --- diff --git a/ginac/factor.cpp b/ginac/factor.cpp index a07a42b0..cb25f816 100644 --- a/ginac/factor.cpp +++ b/ginac/factor.cpp @@ -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); }