From 6b91645f1dd03d98391d66a423d27519387451f6 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 28 Jun 2011 19:03:01 +0200 Subject: [PATCH] isl_qpolynomial_drop_dims: properly handle nested spaces For consistency, we remove the nesting even if n == 0. 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 a2b9602..ec973cc 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -2312,7 +2312,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_drop_dims( { if (!qp) return NULL; - if (n == 0 && !isl_dim_get_tuple_name(qp->dim, type)) + if (n == 0 && !isl_dim_is_named_or_nested(qp->dim, type)) return qp; qp = isl_qpolynomial_cow(qp); -- 2.7.4