summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 20:21:15 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 20:21:15 (GMT)
commit7dcd36a37da595367e3a5d95ac87062df76ef717 (patch)
treed37ecbc2a6df560f8608125be618c63acfb0cb44 /src
parent3dd539473b7440f84f1297cc53d90d6d63b39ad4 (diff)
downloadhdf5-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')
-rw-r--r--src/H5Dchunk.c3
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")