summaryrefslogtreecommitdiffstats
path: root/src/H5Cquery.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-08-25 04:05:23 (GMT)
committerGitHub <noreply@github.com>2021-08-25 04:05:23 (GMT)
commit131402a92de9bbd5df60d5859c37c4820c60d6b9 (patch)
tree06e3f4cd947ece0c9d65e82020a7b993c1ce2848 /src/H5Cquery.c
parente9765e6c09de2e278e2821faef656b6d61854196 (diff)
downloadhdf5-131402a92de9bbd5df60d5859c37c4820c60d6b9.zip
hdf5-131402a92de9bbd5df60d5859c37c4820c60d6b9.tar.gz
hdf5-131402a92de9bbd5df60d5859c37c4820c60d6b9.tar.bz2
More various warnings (#958)
* Committing clang-format changes * Fixed various -Wdouble-promotion warnings * Fixed -Wshadow warning for `optopt` conflict On macOS at least, there is a global various named `optopt` in unistd.h. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5Cquery.c')
-rw-r--r--src/H5Cquery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Cquery.c b/src/H5Cquery.c
index 6cf8ffc..710ce2a 100644
--- a/src/H5Cquery.c
+++ b/src/H5Cquery.c
@@ -201,7 +201,7 @@ H5C_get_cache_hit_rate(const H5C_t *cache_ptr, double *hit_rate_ptr)
if (cache_ptr->cache_accesses > 0)
*hit_rate_ptr = ((double)(cache_ptr->cache_hits)) / ((double)(cache_ptr->cache_accesses));
else
- *hit_rate_ptr = 0.0f;
+ *hit_rate_ptr = 0.0;
done:
FUNC_LEAVE_NOAPI(ret_value)