diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2019-08-16 16:52:42 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-08-16 17:02:03 (GMT) |
commit | 13a3be1caa3bd32bbf556f4045708a880e54fc7f (patch) | |
tree | 97d41acde2b8d6fef26d2bbec1e0c874f9e545ee /src | |
parent | 3413544b00a5a0c349e8f29dc98562bef287ef9c (diff) | |
download | hdf5-13a3be1caa3bd32bbf556f4045708a880e54fc7f.zip hdf5-13a3be1caa3bd32bbf556f4045708a880e54fc7f.tar.gz hdf5-13a3be1caa3bd32bbf556f4045708a880e54fc7f.tar.bz2 |
Merge pull request #1865 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/HDFFV-10813-swmr-test-fails-on-jelly-with to develop
* commit '538f743c145fbbfa7b1119693efd2ff61b34efae':
Changes based on PR feedback.
Fix for HDFFV-10813 H5Fset_metadata_read_retry_info() test fails on jelly with PGI/19.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Fint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c index 253ec3c..eebbcf0 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -2956,8 +2956,10 @@ H5F_set_retries(H5F_t *f) /* Initialize the # of bins for retries */ f->shared->retries_nbins = 0; if(f->shared->read_attempts > 1) { - tmp = HDlog10((double)(f->shared->read_attempts - 1)); - f->shared->retries_nbins = (unsigned)tmp + 1; + /* Use HDceil to ensure that the log10 value is rounded up to the + nearest integer before casting to unsigned */ + tmp = HDceil(HDlog10((double)f->shared->read_attempts)); + f->shared->retries_nbins = (unsigned)tmp; } FUNC_LEAVE_NOAPI(SUCCEED) |