From f657927dcadf6554c7bf7a210dcf856d2299a998 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 25 Oct 2011 16:40:19 +0200 Subject: [PATCH] isl_pw_*_opt: use correct space in case of empty input Signed-off-by: Sven Verdoolaege --- isl_pw_templ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_pw_templ.c b/isl_pw_templ.c index ddabbc5..8e5d15f 100644 --- a/isl_pw_templ.c +++ b/isl_pw_templ.c @@ -1068,7 +1068,7 @@ __isl_give isl_qpolynomial *FN(PW,opt)(__isl_take PW *pw, int max) if (pw->n == 0) { isl_space *dim = isl_space_copy(pw->dim); FN(PW,free)(pw); - return isl_qpolynomial_zero_on_domain(dim); + return isl_qpolynomial_zero_on_domain(isl_space_domain(dim)); } opt = FN(EL,opt_on_domain)(FN(EL,copy)(pw->p[0].FIELD), -- 2.7.4