diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-13 20:21:15 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-11-13 20:21:15 (GMT) |
commit | 7dcd36a37da595367e3a5d95ac87062df76ef717 (patch) | |
tree | d37ecbc2a6df560f8608125be618c63acfb0cb44 /src/H5Dchunk.c | |
parent | 3dd539473b7440f84f1297cc53d90d6d63b39ad4 (diff) | |
download | hdf5-7dcd36a37da595367e3a5d95ac87062df76ef717.zip hdf5-7dcd36a37da595367e3a5d95ac87062df76ef717.tar.gz hdf5-7dcd36a37da595367e3a5d95ac87062df76ef717.tar.bz2 |
Move a statement under some declarations since some vintages of Visual
Studio don't like declarations after statements.
Diffstat (limited to 'src/H5Dchunk.c')
-rw-r--r-- | src/H5Dchunk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index 53a2c5f..947f611 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -2172,10 +2172,11 @@ H5D__create_chunk_mem_map_1d(const H5D_chunk_map_t *fm) chunk_info->mspace_shared = TRUE; } /* end if */ else { - HDassert(fm->m_ndims == 1); hsize_t mem_sel_start[H5S_MAX_RANK]; /* Offset of low bound of file selection */ hsize_t mem_sel_end[H5S_MAX_RANK]; /* Offset of high bound of file selection */ + HDassert(fm->m_ndims == 1); + if(H5S_SELECT_BOUNDS(fm->mem_space, mem_sel_start, mem_sel_end) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTGET, FAIL, "can't get file selection bound info") |