From 5051835ffc86d33836b12c6a4bf7da92cdcf4efa Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 17 Aug 2018 10:55:17 +0200 Subject: [PATCH] isl_qpolynomial_from_term: use isl_term_dim This reduces the dependence on the internal representation. Signed-off-by: Sven Verdoolaege --- isl_polynomial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_polynomial.c b/isl_polynomial.c index e56c7988..0c4d1490 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -4134,7 +4134,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_from_term(__isl_take isl_term *term) if (!term) return NULL; - n = isl_space_dim(term->dim, isl_dim_all) + term->div->n_row; + n = isl_term_dim(term, isl_dim_all); poly = isl_poly_rat_cst(term->dim->ctx, term->n, term->d); for (i = 0; i < n; ++i) { -- 2.11.4.GIT