summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-05-07 16:45:05 (GMT)
committerGitHub <noreply@github.com>2021-05-07 16:45:05 (GMT)
commit9023e98940d959aa974e655cc383fab0b0ed663c (patch)
tree8cad5bb35e1385c7a267319f4baf688d0efade63 /test/dsets.c
parent1e572b18e3c271f9de045a6b61e3c855779e7c58 (diff)
downloadhdf5-9023e98940d959aa974e655cc383fab0b0ed663c.zip
hdf5-9023e98940d959aa974e655cc383fab0b0ed663c.tar.gz
hdf5-9023e98940d959aa974e655cc383fab0b0ed663c.tar.bz2
Removes gratuitous (double)x.yF casts (#632)
* Committing clang-format changes * Removes gratuitous (double)x.yF casts * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dsets.c b/test/dsets.c
index e38f253..88dcb35 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -6520,7 +6520,7 @@ test_set_local(hid_t fapl)
for (i = 0; i < DSET_DIM1; i++)
for (j = 0; j < DSET_DIM2; j++) {
points[i][j] = (int)n++;
- points_dbl[i][j] = (double)1.5F * n++;
+ points_dbl[i][j] = 1.5 * n++;
}
/* Open file */
@@ -6716,7 +6716,7 @@ test_set_local(hid_t fapl)
for (j = 0; j < dims[1]; j++) {
/* If the difference between two values is greater than 0.001%, they're
* considered not equal. */
- if (!H5_DBL_REL_EQUAL(points_dbl[i][j], check_dbl[i][j], (double)0.00001F)) {
+ if (!H5_DBL_REL_EQUAL(points_dbl[i][j], check_dbl[i][j], 0.00001)) {
H5_FAILED();
HDprintf(" Line %d: Read different values than written.\n", __LINE__);
HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
@@ -8803,7 +8803,7 @@ test_chunk_cache(hid_t fapl)
/* Set new rdcc settings on fapl */
nslots_2 = nslots_1 * 2;
nbytes_2 = nbytes_1 * 2;
- w0_2 = w0_1 / (double)2.0F;
+ w0_2 = w0_1 / 2.0;
if (H5Pset_cache(fapl_local, 0, nslots_2, nbytes_2, w0_2) < 0)
FAIL_STACK_ERROR