diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2008-08-13 15:01:57 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2008-08-25 10:15:07 +0200 |
commit | c4084e48d715859a1ce39847ffd4412535d8a263 (patch) | |
tree | 9125adc09f429be369282fd93426b773a918bc1c /isl_mat.c | |
parent | c46fd758a6b4982a79e707981b7d9e5fa8fe1f50 (diff) | |
download | isl-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |