summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2022-01-28 14:31:26 (GMT)
committerGitHub <noreply@github.com>2022-01-28 14:31:26 (GMT)
commit44de59b642c4d5ccf505a1072d10b63dc9fe0628 (patch)
tree619d965121f5f3f1f8c87f1e73267b233a234858 /hl
parent5fb634ca26ce165bb09c5c920f345e546251876c (diff)
downloadhdf5-44de59b642c4d5ccf505a1072d10b63dc9fe0628.zip
hdf5-44de59b642c4d5ccf505a1072d10b63dc9fe0628.tar.gz
hdf5-44de59b642c4d5ccf505a1072d10b63dc9fe0628.tar.bz2
Used clang-tidy to change all floating point f suffixes to F (#1359)
Diffstat (limited to 'hl')
-rw-r--r--hl/test/test_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/test/test_image.c b/hl/test/test_image.c
index 2251a04..4997df6 100644
--- a/hl/test/test_image.c
+++ b/hl/test/test_image.c
@@ -650,7 +650,7 @@ test_generate(void)
HL_TESTING2("make indexed image from land data");
for (i = 0; i < n_elements; i++) {
- if (data[i] < 0.0f)
+ if (data[i] < 0.0F)
image_data[i] = 0;
else
image_data[i] = (unsigned char)((255 * data[i]) / xmax);
@@ -671,10 +671,10 @@ test_generate(void)
HL_TESTING2("make indexed image from sea data");
for (i = 0; i < n_elements; i++) {
- if (data[i] > 0.0f)
+ if (data[i] > 0.0F)
image_data[i] = 0;
else {
- image_data[i] = (unsigned char)((255.0f * (data[i] - xmin)) / (xmax - xmin));
+ image_data[i] = (unsigned char)((255.0F * (data[i] - xmin)) / (xmax - xmin));
}
}