summaryrefslogtreecommitdiff
path: root/isl_mat.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2008-08-13 15:01:57 +0200
committerSven Verdoolaege <skimo@kotnet.org>2008-08-25 10:15:07 +0200
commitc4084e48d715859a1ce39847ffd4412535d8a263 (patch)
tree9125adc09f429be369282fd93426b773a918bc1c /isl_mat.c
parentc46fd758a6b4982a79e707981b7d9e5fa8fe1f50 (diff)
downloadisl-c4084e48d715859a1ce39847ffd4412535d8a263.tar.gz
isl-c4084e48d715859a1ce39847ffd4412535d8a263.tar.bz2
isl-c4084e48d715859a1ce39847ffd4412535d8a263.zip
keep cache of blocks of isl_ints
Diffstat (limited to 'isl_mat.c')
-rw-r--r--isl_mat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/isl_mat.c b/isl_mat.c
index 15c6b49a..fb7c9151 100644
--- a/isl_mat.c
+++ b/isl_mat.c
@@ -12,10 +12,9 @@ struct isl_mat *isl_mat_alloc(struct isl_ctx *ctx,
if (!mat)
return NULL;
- mat->block.size = 0;
mat->row = NULL;
mat->block = isl_blk_alloc(ctx, n_row * n_col);
- if (!mat->block.data)
+ if (isl_blk_is_error(mat->block))
goto error;
mat->row = isl_alloc_array(ctx, isl_int *, n_row);
if (!mat->row)