summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2011-05-12 23:12:29 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2011-05-12 23:12:29 (GMT)
commitb9e1b158a547d4b0da6cc2b92b4494cdba58495e (patch)
tree6f5e1ad8d427508a43eeab93ece60da6cf72fa99 /tools/lib/h5tools_str.c
parentf100b8f6bbe63751a01d3ae63ca06234b657ce9b (diff)
downloadhdf5-b9e1b158a547d4b0da6cc2b92b4494cdba58495e.zip
hdf5-b9e1b158a547d4b0da6cc2b92b4494cdba58495e.tar.gz
hdf5-b9e1b158a547d4b0da6cc2b92b4494cdba58495e.tar.bz2
[svn-r20804] Purpose:
HDFFV-7594 - GMQS: h5dump shows wrong values for H5T_STD_I8LE dataset on Blue-gene (ppc64 linux BE +@) Description: For the STD_I8 type data, updated to use 'signed char' instead of 'char' as 'char' could be defined as unsigned on a certain system, which cause h5dump to display data values incorrectly. Tested: jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE)
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 54e2584..af3f7e7 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -814,7 +814,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
h5tools_str_append(str, OPT(info->fmt_uint, "%u"), tempuint);
}
else if (H5Tequal(type, H5T_NATIVE_SCHAR)) {
- char tempchar;
+ signed char tempchar;
HDmemcpy(&tempchar, cp_vp, sizeof(char));
if(packed_bits_num) {
tempchar = (tempchar >> packed_data_offset) & packed_data_mask;