diff options
-rw-r--r-- | src/H5.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -718,7 +718,7 @@ HDfprintf (FILE *stream, const char *fmt, ...) case 'd': case 'i': if (!HDstrcmp(modifier, "h")) { - short x = va_arg (ap, short); + short x = va_arg (ap, int); n = fprintf (stream, template, x); } else if (!*modifier) { int x = va_arg (ap, int); @@ -737,7 +737,7 @@ HDfprintf (FILE *stream, const char *fmt, ...) case 'x': case 'X': if (!HDstrcmp (modifier, "h")) { - unsigned short x = va_arg (ap, unsigned short); + unsigned short x = va_arg (ap, unsigned int); n = fprintf (stream, template, x); } else if (!*modifier) { unsigned int x = va_arg (ap, unsigned int); @@ -757,7 +757,7 @@ HDfprintf (FILE *stream, const char *fmt, ...) case 'g': case 'G': if (!HDstrcmp (modifier, "h")) { - float x = va_arg (ap, float); + float x = va_arg (ap, double); n = fprintf (stream, template, x); } else if (!*modifier || !HDstrcmp (modifier, "l")) { double x = va_arg (ap, double); |