summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-10-17 19:22:27 (GMT)
committerGitHub <noreply@github.com>2023-10-17 19:22:27 (GMT)
commit2a3b511e96fbc468ef2b934eb169048e723a2f34 (patch)
treef492aa66b4be5a77cb8fc417c89770e215261b55 /hl
parent08d0909c9c2916ae7f3cc5f8918b7066a9847433 (diff)
downloadhdf5-2a3b511e96fbc468ef2b934eb169048e723a2f34.zip
hdf5-2a3b511e96fbc468ef2b934eb169048e723a2f34.tar.gz
hdf5-2a3b511e96fbc468ef2b934eb169048e723a2f34.tar.bz2
Restore floating-point suffixes in tests (#3698)
A prior commit removed too many F suffixes. This restores the suffixes for float variables.
Diffstat (limited to 'hl')
-rw-r--r--hl/test/test_table.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/hl/test/test_table.c b/hl/test/test_table.c
index c475e7f..c661434 100644
--- a/hl/test/test_table.c
+++ b/hl/test/test_table.c
@@ -198,7 +198,7 @@ test_table(hid_t fid, int do_write)
hsize_t chunk_size = 10;
int compress = 0;
int *fill = NULL;
- particle_t fill1[1] = {{"no data", -1, -99.0, -99.0, -1}};
+ particle_t fill1[1] = {{"no data", -1, -99.0F, -99.0, -1}};
int fill1_new[1] = {-100};
hsize_t position;
char tname[20];
@@ -226,23 +226,23 @@ test_table(hid_t fid, int do_write)
particle2_t rbuf2[NRECORDS];
particle3_t rbuf3[NRECORDS];
particle_t rbufc[NRECORDS * 2];
- particle_t abuf[2] = {{"eight", 80, 8.0, 80.0, 80}, {"nine", 90, 9.0, 90.0, 90}};
- particle_t ibuf[2] = {{"zero", 0, 0.0, 0.0, 0}, {"zero", 0, 0.0, 0.0, 0}};
+ particle_t abuf[2] = {{"eight", 80, 8.0F, 80.0, 80}, {"nine", 90, 9.0F, 90.0, 90}};
+ particle_t ibuf[2] = {{"zero", 0, 0.0F, 0.0, 0}, {"zero", 0, 0.0F, 0.0, 0}};
particle_t wbufd[NRECORDS];
particle_t wbuf[NRECORDS] = {{
"zero",
0,
- 0.0,
+ 0.0F,
0.0,
0,
},
- {"one", 10, 1.0, 10.0, 10},
- {"two", 20, 2.0, 20.0, 20},
- {"three", 30, 3.0, 30.0, 30},
- {"four", 40, 4.0, 40.0, 40},
- {"five", 50, 5.0, 50.0, 50},
- {"six", 60, 6.0, 60.0, 60},
- {"seven", 70, 7.0, 70.0, 70}};
+ {"one", 10, 1.0F, 10.0, 10},
+ {"two", 20, 2.0F, 20.0, 20},
+ {"three", 30, 3.0F, 30.0, 30},
+ {"four", 40, 4.0F, 40.0, 40},
+ {"five", 50, 5.0F, 50.0, 50},
+ {"six", 60, 6.0F, 60.0, 60},
+ {"seven", 70, 7.0F, 70.0, 70}};
/* buffers for the field "Pressure" and "New_field" */
float pressure_in[NRECORDS] = {0.0F, 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F, 7.0F};
float pressure_out[NRECORDS];