summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5system.c')
-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);