summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/H5system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 437a004..56db380 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -313,7 +313,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
case 'G':
if(!HDstrcmp(modifier, "h")) {
float x = (float)va_arg(ap, double);
- n = fprintf(stream, format_templ, x);
+ n = fprintf(stream, format_templ, (double)x);
} else if(!*modifier || !HDstrcmp(modifier, "l")) {
double x = va_arg(ap, double);
n = fprintf(stream, format_templ, x);