summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump_xml.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-03-11 22:51:14 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-03-11 22:51:14 (GMT)
commit7659506fa895d00ddaeba68603689e51ca263fb3 (patch)
treeda50a04e4e87cc723c9eb1a0b303483526b889aa /tools/h5dump/h5dump_xml.c
parent88ac8e8929f6fd99732a1e08ced4ea82bfb230f1 (diff)
downloadhdf5-7659506fa895d00ddaeba68603689e51ca263fb3.zip
hdf5-7659506fa895d00ddaeba68603689e51ca263fb3.tar.gz
hdf5-7659506fa895d00ddaeba68603689e51ca263fb3.tar.bz2
[svn-r26438] Fixed some double promotion warnings from gcc 4.9.2. Most were in
format strings. Tested on: h5committest
Diffstat (limited to 'tools/h5dump/h5dump_xml.c')
-rw-r--r--tools/h5dump/h5dump_xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5dump/h5dump_xml.c b/tools/h5dump/h5dump_xml.c
index 64667cb..6ccbc8c 100644
--- a/tools/h5dump/h5dump_xml.c
+++ b/tools/h5dump/h5dump_xml.c
@@ -3563,7 +3563,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type)
/* Render the element */
h5tools_str_reset(&buffer);
- h5tools_str_append(&buffer, "\"%f\"", *(float *) buf);
+ h5tools_str_append(&buffer, "\"%f\"", (double)*(float *)buf);
h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0);
ctx.need_prefix = TRUE;