summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-04-12 19:47:55 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-04-12 19:47:55 (GMT)
commit04404b74db9fa463e851213121467cb9f4ce0304 (patch)
tree29f235c8d86cf019c72d938925289d971be7ab91 /src/H5.c
parent99f5644383b7426c3ae2c5252ce957634291e75f (diff)
downloadhdf5-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.c6
1 files 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);