[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)
This commit is contained in:
Jonathan Kim 2011-05-12 18:12:29 -05:00
parent f100b8f6bb
commit b9e1b158a5
2 changed files with 4 additions and 1 deletions

View File

@ -525,6 +525,9 @@ Bug Fixes since HDF5-1.8.0 release
Tools
-----
- Fixed h5dump to display correct value for H5T_STD_I8LE dataset
on a system (ppc64, linux, Big-Endian, clustering).
Bug #HDFFV-7594 (ABERT & JKM 05/12/2011)
- Fixed h5diff to compare file itself correctly. Previously h5diff
reported either different or not compatible in certain cases even
comparing file itself. This fix also improve performance when

View File

@ -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;