summaryrefslogtreecommitdiffstats
path: root/test/objcopy.c
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2021-10-06 21:25:08 (GMT)
committerGitHub <noreply@github.com>2021-10-06 21:25:08 (GMT)
commit52cb2833de142f67bf52318457bb95c5a3682563 (patch)
treefcaf7cd4415a9c7db349ad9dd43df2a9edc14bd7 /test/objcopy.c
parent174f4275bab93e734fafd94d9b69929f3aeb963c (diff)
downloadhdf5-52cb2833de142f67bf52318457bb95c5a3682563.zip
hdf5-52cb2833de142f67bf52318457bb95c5a3682563.tar.gz
hdf5-52cb2833de142f67bf52318457bb95c5a3682563.tar.bz2
OESS-168: Remove clang warnings. (#1071)
* OESS-168: Remove clang warnings. * Address review by @jehndersonHDF.
Diffstat (limited to 'test/objcopy.c')
-rw-r--r--test/objcopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index c8a5bac..911a45b 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -11092,7 +11092,7 @@ test_copy_dataset_contig_cmpd_vl(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl,
buf[i].b.p = (int *)HDmalloc(buf[i].b.len * sizeof(int));
for (j = 0; j < buf[i].b.len; j++)
((int *)buf[i].b.p)[j] = (int)(i * 10 + j);
- buf[i].c = 1.0F / ((float)i + 1.0F);
+ buf[i].c = 1.0 / ((double)i + 1.0);
} /* end for */
/* Initialize the filenames */
@@ -11268,7 +11268,7 @@ test_copy_dataset_chunked_cmpd_vl(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
buf[i].b.p = (int *)HDmalloc(buf[i].b.len * sizeof(int));
for (j = 0; j < buf[i].b.len; j++)
((int *)buf[i].b.p)[j] = (int)(i * 10 + j);
- buf[i].c = 1.0F / ((float)i + 1.0F);
+ buf[i].c = 1.0 / ((double)i + 1.0);
} /* end for */
/* Initialize the filenames */
@@ -11453,7 +11453,7 @@ test_copy_dataset_compact_cmpd_vl(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
buf[i].b.p = (int *)HDmalloc(buf[i].b.len * sizeof(int));
for (j = 0; j < buf[i].b.len; j++)
((int *)buf[i].b.p)[j] = (int)(i * 10 + j);
- buf[i].c = 1.0F / ((float)i + 1.0F);
+ buf[i].c = 1.0 / ((double)i + 1.0);
} /* end for */
/* Initialize the filenames */