From f0bd4e91c6132a264c421c60160c0656180ed32d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 28 Jun 2011 23:10:19 +0200 Subject: [PATCH] isl_qpolynomial_insert_dims: insert zero columns in div matrix In order to insert dimensions, columns corresponding to these extra dimensions need to be inserted into the matrix representing the integer divisions. Before, arbitrary columns were being added, but the divs have zero coefficients for these new dimensions, so we should make sure the columns are zero. 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 efc6974..a2b9602 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -2792,7 +2792,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_insert_dims( g_pos = pos(qp->dim, type) + first; - qp->div = isl_mat_insert_cols(qp->div, 2 + g_pos, n); + qp->div = isl_mat_insert_zero_cols(qp->div, 2 + g_pos, n); if (!qp->div) goto error; -- 2.7.4