From 04404b74db9fa463e851213121467cb9f4ce0304 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 12 Apr 2000 14:47:55 -0500 Subject: [svn-r2122] Fixed small problem with va_arg & shorts and floats in HDfprintf. This closes bug #401. --- src/H5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/H5.c b/src/H5.c index b2f6b06..c1a57c9 100644 --- a/src/H5.c +++ b/src/H5.c @@ -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); -- cgit v0.12