isl_bernstein.c: fix typo
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 23 Jan 2011 14:41:41 +0000 (15:41 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 23 Jan 2011 16:39:29 +0000 (17:39 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_bernstein.c

index 38bf916..6035ad6 100644 (file)
@@ -262,8 +262,7 @@ static int bernstein_coefficients_cell(__isl_take isl_cell *cell, void *user)
                return isl_cell_foreach_simplex(cell,
                                            &bernstein_coefficients_cell, user);
 
-       subs = isl_alloc_array(data->poly->dim->ctx, isl_qpolynomial *,
-                               1 + nvar);
+       subs = isl_alloc_array(ctx, isl_qpolynomial *, 1 + nvar);
        if (!subs)
                goto error;