diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-19 18:45:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-19 18:45:42 (GMT) |
commit | fd78a6021d4627eff17046e90126c1c665320bd1 (patch) | |
tree | 73c541b8a44f2ca3d49a2c7322712cfe6f5bc85f /src/H5.c | |
parent | 7c8d70200303e03fea24a61707658392eb450911 (diff) | |
download | hdf5-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.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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++; |