summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index b7a7e75..a4fe4fa 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -125,7 +125,7 @@ h5dump_sprint(char *s/*out*/, const h5dump_t *info, hid_t type, void *vp)
sprintf(temp, "%g", *((float*)vp));
} else if (info->ascii &&
- (H5Tequal(type, H5T_NATIVE_CHAR) ||
+ (H5Tequal(type, H5T_NATIVE_SCHAR) ||
H5Tequal(type, H5T_NATIVE_UCHAR))) {
switch (*((char*)vp)) {
case '"':
@@ -223,7 +223,7 @@ h5dump_sprint(char *s/*out*/, const h5dump_t *info, hid_t type, void *vp)
}
if (quote) sprintf(temp+strlen(temp), "%c", quote);
- } else if (H5Tequal(type, H5T_NATIVE_CHAR)) {
+ } else if (H5Tequal(type, H5T_NATIVE_SCHAR)) {
sprintf(temp, "%d", *((signed char*)vp));
} else if (H5Tequal(type, H5T_NATIVE_UCHAR)) {
@@ -525,7 +525,7 @@ h5dump_fixtype(hid_t f_type)
* memory type available.
*/
if (size<=sizeof(char)) {
- m_type = H5Tcopy(H5T_NATIVE_CHAR);
+ m_type = H5Tcopy(H5T_NATIVE_SCHAR);
} else if (size<=sizeof(short)) {
m_type = H5Tcopy(H5T_NATIVE_SHORT);
} else if (size<=sizeof(int)) {