diff options
author | Quincey Koziol <koziol@lbl.gov> | 2021-08-31 14:26:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2021-08-31 14:26:02 (GMT) |
commit | 93675a15f22d65f4892df8fb9ea05b653001429c (patch) | |
tree | 46e439cff9615f52c0ebbf4a2557667e134932bd /hl/examples/ex_table_03.c | |
parent | 929736cfb04df132e60df98c772db0db17dc0306 (diff) | |
parent | 01fe2549a36d7635b2cbe6f6a57cbcce29c1335b (diff) | |
download | hdf5-93675a15f22d65f4892df8fb9ea05b653001429c.zip hdf5-93675a15f22d65f4892df8fb9ea05b653001429c.tar.gz hdf5-93675a15f22d65f4892df8fb9ea05b653001429c.tar.bz2 |
Merge branch 'develop' into post_open_fix
Diffstat (limited to 'hl/examples/ex_table_03.c')
-rw-r--r-- | hl/examples/ex_table_03.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/examples/ex_table_03.c b/hl/examples/ex_table_03.c index 31cf970..3caa45e 100644 --- a/hl/examples/ex_table_03.c +++ b/hl/examples/ex_table_03.c @@ -46,14 +46,14 @@ main(void) size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi), HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)}; - Particle p = {"zero", 0, 0, 0.0f, 0.0}; + Particle p = {"zero", 0, 0, 0.0F, 0.0}; size_t dst_sizes[NFIELDS] = {sizeof(p.name), sizeof(p.lati), sizeof(p.longi), sizeof(p.pressure), sizeof(p.temperature)}; /* Define field information */ const char *field_names[NFIELDS] = {"Name", "Latitude", "Longitude", "Pressure", "Temperature"}; /* Fill value particle */ - Particle fill_data[1] = {{"no data", -1, -1, -99.0f, -99.0}}; + Particle fill_data[1] = {{"no data", -1, -1, -99.0F, -99.0}}; hid_t field_type[NFIELDS]; hid_t string_type; hid_t file_id; @@ -63,7 +63,7 @@ main(void) int i; /* Define 2 new particles to write */ - Particle particle_in[NRECORDS_WRITE] = {{"zero", 0, 0, 0.0f, 0.0}, {"one", 10, 10, 1.0f, 10.0}}; + Particle particle_in[NRECORDS_WRITE] = {{"zero", 0, 0, 0.0F, 0.0}, {"one", 10, 10, 1.0F, 10.0}}; /* Initialize the field field_type */ string_type = H5Tcopy(H5T_C_S1); |