From e6cc24fd7e25e7824217e83020a8256468cddd97 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 6 Sep 2016 15:55:52 +0200 Subject: [PATCH] isl_polynomial.c: fix_inactive: use isl_set_dim This reduces the dependence on the internal representation. Signed-off-by: Sven Verdoolaege --- isl_polynomial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isl_polynomial.c b/isl_polynomial.c index 50411c5c..d2cfedb9 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -4227,7 +4227,7 @@ static __isl_give isl_set *fix_inactive(__isl_take isl_set *set, if (!set || !qp) goto error; - d = isl_space_dim(set->dim, isl_dim_all); + d = isl_set_dim(set, isl_dim_all); active = isl_calloc_array(set->ctx, int, d); if (set_active(qp, active) < 0) goto error; @@ -4241,8 +4241,8 @@ static __isl_give isl_set *fix_inactive(__isl_take isl_set *set, return set; } - nparam = isl_space_dim(set->dim, isl_dim_param); - nvar = isl_space_dim(set->dim, isl_dim_set); + nparam = isl_set_dim(set, isl_dim_param); + nvar = isl_set_dim(set, isl_dim_set); for (i = 0; i < nparam; ++i) { if (active[i]) continue; -- 2.11.4.GIT