summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-19 18:45:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-19 18:45:42 (GMT)
commitfd78a6021d4627eff17046e90126c1c665320bd1 (patch)
tree73c541b8a44f2ca3d49a2c7322712cfe6f5bc85f /src/H5.c
parent7c8d70200303e03fea24a61707658392eb450911 (diff)
downloadhdf5-fd78a6021d4627eff17046e90126c1c665320bd1.zip
hdf5-fd78a6021d4627eff17046e90126c1c665320bd1.tar.gz
hdf5-fd78a6021d4627eff17046e90126c1c665320bd1.tar.bz2
[svn-r4019] Purpose:
Bug fix Description: 'll' type description wasn't being handled correctly in HDfprintf, causing testing failures. Solution: Added tests for 'll' to HDfprintf's type description parsing. Platforms tested: Solaris 2.7 (arabica)
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/H5.c b/src/H5.c
index c0b4221..2c40405 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -823,8 +823,17 @@ HDfprintf (FILE *stream, const char *fmt, ...)
break;
default:
- modifier[0] = *s;
- modifier[1] = '\0';
+ /* Handle 'll' for long long types */
+ if(*s=='l' && *(s+1)=='l') {
+ modifier[0] = *s;
+ modifier[1] = *s;
+ modifier[2] = '\0';
+ s++; /* Increment over first 'l', second is taken care of below */
+ } /* end if */
+ else {
+ modifier[0] = *s;
+ modifier[1] = '\0';
+ } /* end else */
break;
}
s++;