From 5f760f39d272e98ab334a750aa82a8136b1b9729 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 22 Mar 2010 15:51:51 +0100 Subject: [PATCH] isl_qpolynomial_from_ginac: expand ex before inspection --- bernstein.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bernstein.cc b/bernstein.cc index 16f509b..f2a34d0 100644 --- a/bernstein.cc +++ b/bernstein.cc @@ -740,10 +740,13 @@ static __isl_give isl_qpolynomial *qp_from_ex(__isl_take isl_dim *dim, __isl_give isl_qpolynomial *isl_qpolynomial_from_ginac(__isl_take isl_dim *dim, const GiNaC::ex &ex, const GiNaC::exvector ¶ms) { + GiNaC::ex exp; + if (!dim) return NULL; - return qp_from_ex(dim, ex, params, 0); + exp = ex.expand(); + return qp_from_ex(dim, exp, params, 0); error: isl_dim_free(dim); return NULL; -- 2.11.4.GIT