diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2018-11-20 03:09:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2018-11-20 03:09:28 (GMT) |
commit | 23ff0240ae18d52ac8164c7a55d698e7b2cd5dcc (patch) | |
tree | 09f6bc5d390c65972c9913e14a84f5a116c17eda /src/H5Dchunk.c | |
parent | 6c99961bb2772dd809ff200bf9a6c456f8e9a1d9 (diff) | |
parent | 160107a97c30a759ffd4ba7fe13284d24d349301 (diff) | |
download | hdf5-23ff0240ae18d52ac8164c7a55d698e7b2cd5dcc.zip hdf5-23ff0240ae18d52ac8164c7a55d698e7b2cd5dcc.tar.gz hdf5-23ff0240ae18d52ac8164c7a55d698e7b2cd5dcc.tar.bz2 |
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into stackable_vol
Diffstat (limited to 'src/H5Dchunk.c')
-rw-r--r-- | src/H5Dchunk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index cb6b925..91f3b91 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -695,6 +695,9 @@ H5D__chunk_set_info_real(H5O_layout_chunk_t *layout, unsigned ndims, /* Compute the # of chunks in dataset dimensions */ for(u = 0, layout->nchunks = 1, layout->max_nchunks = 1; u < ndims; u++) { + /* Sanity check */ + HDassert(layout->dim[u] > 0); + /* Round up to the next integer # of chunks, to accommodate partial chunks */ layout->chunks[u] = ((curr_dims[u] + layout->dim[u]) - 1) / layout->dim[u]; if(H5S_UNLIMITED == max_dims[u]) |