From 65789145e9837fbbd2253c61a13bae0b7c1b3893 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 20 Feb 2015 12:15:46 +0100 Subject: [PATCH] isl_basic_set_sample_with_cone: use isl_basic_set_get_ctx Do so instead of looking into isl_basic_set internals. Signed-off-by: Sven Verdoolaege --- isl_sample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isl_sample.c b/isl_sample.c index 560ad957..e1b9e0e3 100644 --- a/isl_sample.c +++ b/isl_sample.c @@ -924,11 +924,11 @@ __isl_give isl_vec *isl_basic_set_sample_with_cone( if (!bset || !cone) goto error; - ctx = bset->ctx; + ctx = isl_basic_set_get_ctx(bset); total = isl_basic_set_total_dim(cone); cone_dim = total - cone->n_eq; - M = isl_mat_sub_alloc6(bset->ctx, cone->eq, 0, cone->n_eq, 1, total); + M = isl_mat_sub_alloc6(ctx, cone->eq, 0, cone->n_eq, 1, total); M = isl_mat_left_hermite(M, 0, &U, NULL); if (!M) goto error; -- 2.11.4.GIT