diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:45:34 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-09-13 15:45:34 (GMT) |
commit | 64b1807783208d620e23edf10504cc15d84a4129 (patch) | |
tree | 317b8154525e592f6e7d1bca8d7c41a7de5534a2 /tools/lib/h5tools_str.c | |
parent | 645fae330db34b49ed06d75fef0a1b680821a906 (diff) | |
download | hdf5-64b1807783208d620e23edf10504cc15d84a4129.zip hdf5-64b1807783208d620e23edf10504cc15d84a4129.tar.gz hdf5-64b1807783208d620e23edf10504cc15d84a4129.tar.bz2 |
[svn-r21378] The tools used "%hhd" to print signed char. But VMS doesn't know it. So I used H5_VMS to have a different way ("%hd") to print it.
Tested on jam. Not tested on VMS yet. Simple change.
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r-- | tools/lib/h5tools_str.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index fd9ccb9..205dffe 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -836,7 +836,11 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai else tempchar = (tempchar >> packed_data_offset) & packed_data_mask; } +#ifdef H5_VMS + h5tools_str_append(str, OPT(info->fmt_schar, "%hd"), tempchar); +#else h5tools_str_append(str, OPT(info->fmt_schar, "%hhd"), tempchar); +#endif } else if (H5Tequal(type, H5T_NATIVE_UCHAR)) { unsigned char tempuchar; |