From 3ec64b124c622f9de32fdff8ef932dace85f633d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 17 Aug 2018 10:40:41 +0200 Subject: [PATCH] isl_term_dup: 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 00fed368..218be341 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -3892,7 +3892,7 @@ __isl_give isl_term *isl_term_dup(__isl_keep isl_term *term) if (!term) return NULL; - total = isl_space_dim(term->dim, isl_dim_all) + term->div->n_row; + total = isl_term_dim(term, isl_dim_all); dup = isl_term_alloc(isl_space_copy(term->dim), isl_mat_copy(term->div)); if (!dup) -- 2.11.4.GIT