diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-04-12 19:47:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-04-12 19:47:55 (GMT) |
commit | 04404b74db9fa463e851213121467cb9f4ce0304 (patch) | |
tree | 29f235c8d86cf019c72d938925289d971be7ab91 /src/H5.c | |
parent | 99f5644383b7426c3ae2c5252ce957634291e75f (diff) | |
download | hdf5-04404b74db9fa463e851213121467cb9f4ce0304.zip hdf5-04404b74db9fa463e851213121467cb9f4ce0304.tar.gz hdf5-04404b74db9fa463e851213121467cb9f4ce0304.tar.bz2 |
[svn-r2122] Fixed small problem with va_arg & shorts and floats in HDfprintf. This closes
bug #401.
Diffstat (limited to 'src/H5.c')
-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); |