isl_convex_hull.c: add_bounds: propagate errors from add_bound
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 28 Apr 2010 09:55:44 +0000 (11:55 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 28 Apr 2010 09:58:16 +0000 (11:58 +0200)
isl_convex_hull.c

index 23a7981..df7a686 100644 (file)
@@ -2171,11 +2171,11 @@ static struct isl_basic_set *add_bounds(struct isl_basic_set *bset,
        for (j = 0; j < set->p[i]->n_eq; ++j) {
                for (k = 0; k < 2; ++k) {
                        isl_seq_neg(set->p[i]->eq[j], set->p[i]->eq[j], 1+dim);
-                       add_bound(bset, data, set, i, set->p[i]->eq[j]);
+                       bset = add_bound(bset, data, set, i, set->p[i]->eq[j]);
                }
        }
        for (j = 0; j < set->p[i]->n_ineq; ++j)
-               add_bound(bset, data, set, i, set->p[i]->ineq[j]);
+               bset = add_bound(bset, data, set, i, set->p[i]->ineq[j]);
        return bset;
 }