diff options
author | Sven Verdoolaege <skimo@purples.(none)> | 2009-09-05 23:27:34 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@purples.(none)> | 2009-09-06 17:57:15 +0200 |
commit | 7448c8e33fbff806ad569ddbcf166f1306473c1d (patch) | |
tree | c416421921af081a7a8138990488aa9cd62fe711 /isl_tab.c | |
parent | d0bc5d23c4fb7df3cf0051cba7ad9e0893884c8c (diff) | |
download | isl-7448c8e33fbff806ad569ddbcf166f1306473c1d.tar.gz isl-7448c8e33fbff806ad569ddbcf166f1306473c1d.tar.bz2 isl-7448c8e33fbff806ad569ddbcf166f1306473c1d.zip |
isl_tab.c: fix up to_col
Diffstat (limited to 'isl_tab.c')
-rw-r--r-- | isl_tab.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1262,21 +1262,21 @@ error: /* Pivot a non-negative variable down until it reaches the value zero * and then pivot the variable into a column position. */ -int to_col(struct isl_tab *tab, struct isl_tab_var *var) +static int to_col(struct isl_tab *tab, struct isl_tab_var *var) { int i; int row, col; unsigned off = 2 + tab->M; if (!var->is_row) - return; + return 0; while (isl_int_is_pos(tab->mat->row[var->index][1])) { find_pivot(tab, var, NULL, -1, &row, &col); isl_assert(tab->mat->ctx, row != -1, return -1); isl_tab_pivot(tab, row, col); if (!var->is_row) - return; + return 0; } for (i = tab->n_dead; i < tab->n_col; ++i) |