diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-01-05 20:18:16 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-01-05 20:18:16 (GMT) |
commit | f3c2eb9acfd1242618bc314efffac1e0471727e9 (patch) | |
tree | 2ac2051021d8ea1f7e113518eb79352feb957d2e /tools/h5dump/h5dump.c | |
parent | 5f00939eb90d3074c5ce2cfe3526cfc2e147bf88 (diff) | |
download | hdf5-f3c2eb9acfd1242618bc314efffac1e0471727e9.zip hdf5-f3c2eb9acfd1242618bc314efffac1e0471727e9.tar.gz hdf5-f3c2eb9acfd1242618bc314efffac1e0471727e9.tar.bz2 |
[svn-r19918] Add hh modifier to signed char printf format string. Added h5dump test to verify that signed/unsigned datasets print correctly.
Bring solution from 1.8 packed bits fix which solved problem on heiwa with Signed char of 8 bits
Tested: local linux
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r-- | tools/h5dump/h5dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 261fe15..33750f3 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -132,7 +132,7 @@ static h5tool_format_t dataformat = { "", /*fmt_raw */ "%d", /*fmt_int */ "%u", /*fmt_uint */ - "%d", /*fmt_schar */ + "%hhd", /*fmt_schar */ "%u", /*fmt_uchar */ "%d", /*fmt_short */ "%u", /*fmt_ushort */ @@ -216,7 +216,7 @@ static h5tool_format_t xml_dataformat = { "", /*fmt_raw */ "%d", /*fmt_int */ "%u", /*fmt_uint */ - "%d", /*fmt_schar */ + "%hhd", /*fmt_schar */ "%u", /*fmt_uchar */ "%d", /*fmt_short */ "%u", /*fmt_ushort */ @@ -3988,7 +3988,7 @@ parse_start: leave(EXIT_SUCCESS); break; case 'w': - nCols = atoi(opt_arg); + nCols = HDatoi(opt_arg); last_was_dset = FALSE; break; case 'a': |