diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-01-20 15:30:55 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-01-20 15:30:55 (GMT) |
commit | afd696593b786db4c68d7ad0235da145ba250568 (patch) | |
tree | b5ebfef14196fa2b002b7bfea6cf24944659613d /src/H5Dint.c | |
parent | f6429a3f5483100f08b40eb1d06daacc012313cb (diff) | |
parent | b9763eee6dd6a81d2696faf430e0cf7f27281462 (diff) | |
download | hdf5-afd696593b786db4c68d7ad0235da145ba250568.zip hdf5-afd696593b786db4c68d7ad0235da145ba250568.tar.gz hdf5-afd696593b786db4c68d7ad0235da145ba250568.tar.bz2 |
[svn-r28933] merge from trunk.
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r-- | src/H5Dint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index a5b7943..9a87fc2 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -718,6 +718,7 @@ static herr_t H5D__cache_dataspace_info(const H5D_t *dset) { int sndims; /* Signed number of dimensions of dataspace rank */ + unsigned u; /* Local index value */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC @@ -730,6 +731,10 @@ H5D__cache_dataspace_info(const H5D_t *dset) HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't cache dataspace dimensions") dset->shared->ndims = (unsigned)sndims; + /* Compute the inital 'power2up' values */ + for(u = 0; u < dset->shared->ndims; u++) + dset->shared->curr_power2up[u] = H5VM_power2up(dset->shared->curr_dims[u]); + done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5D__cache_dataspace_info() */ |