diff options
Diffstat (limited to 'perform')
-rw-r--r-- | perform/chunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perform/chunk.c b/perform/chunk.c index 71d3903..4f3b1cb 100644 --- a/perform/chunk.c +++ b/perform/chunk.c @@ -165,7 +165,7 @@ static double test_rowmaj (int op, size_t cache_size, size_t io_size) { hid_t file, dset, mem_space, file_space; - signed char *buf = calloc (1, SQUARE(io_size)); + signed char *buf = calloc (1, (size_t)(SQUARE(io_size))); hsize_t i, j, hs_size[2]; hssize_t hs_offset[2]; #ifdef H5_WANT_H5_V1_4_COMPAT @@ -248,7 +248,7 @@ test_diag (int op, size_t cache_size, size_t io_size, size_t offset) hsize_t i, hs_size[2]; hsize_t nio = 0; hssize_t hs_offset[2]; - signed char *buf = calloc (1, SQUARE (io_size)); + signed char *buf = calloc (1, (size_t)(SQUARE (io_size))); #ifdef H5_WANT_H5_V1_4_COMPAT int mdc_nelmts, rdcc_nelmts; #else /* H5_WANT_H5_V1_4_COMPAT */ |