diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-22 18:11:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-22 18:11:24 (GMT) |
commit | 3424f9f5d1c45e739480e16ab3faa272ca1569f8 (patch) | |
tree | 9137c6377285d8576d35205f9e390dbcff40fa57 /src/H5Dio.c | |
parent | bd73819e2682bebcde6e9c3f1183acdb9608e6ce (diff) | |
download | hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.zip hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.gz hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.bz2 |
[svn-r12128] Purpose:
Code cleanup
Description:
Clean up some compiler warnings (esp. those flagged on Windows builds)
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r-- | src/H5Dio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c index f5513f0..dec068e 100644 --- a/src/H5Dio.c +++ b/src/H5Dio.c @@ -2191,8 +2191,8 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f for(u=0; u<fm->f_ndims; u++) fm->total_chunks= fm->total_chunks*fm->chunks[u]; if(IS_H5FD_MPI(dataset->oloc.file)) { - - if(NULL == (fm->select_chunk = (hbool_t *) H5MM_calloc(fm->total_chunks*sizeof(hbool_t)))) + H5_CHECK_OVERFLOW(fm->total_chunks, hsize_t, size_t); + if(NULL == (fm->select_chunk = (hbool_t *) H5MM_calloc((size_t)fm->total_chunks * sizeof(hbool_t)))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate chunk info") } |