summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2009-09-28 15:00:39 +0200
committerSven Verdoolaege <skimo@kotnet.org>2009-10-07 22:03:07 +0200
commit119b88a5a541d00fed70c6727e7c664419a972a4 (patch)
treeddb27d71fe4b344fca601046a2d6e08734ecdd7c
parent964296fdb4cb4e3ecfae03c8187b7b348eedaaf0 (diff)
downloadisl-119b88a5a541d00fed70c6727e7c664419a972a4.tar.gz
isl-119b88a5a541d00fed70c6727e7c664419a972a4.tar.bz2
isl-119b88a5a541d00fed70c6727e7c664419a972a4.zip
isl_tab_allocate_con: add extra assertion
-rw-r--r--isl_tab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/isl_tab.c b/isl_tab.c
index bd8476d7..bf1166a8 100644
--- a/isl_tab.c
+++ b/isl_tab.c
@@ -1098,6 +1098,7 @@ int isl_tab_allocate_con(struct isl_tab *tab)
int r;
isl_assert(tab->mat->ctx, tab->n_row < tab->mat->n_row, return -1);
+ isl_assert(tab->mat->ctx, tab->n_con < tab->max_con, return -1);
r = tab->n_con;
tab->con[r].index = tab->n_row;