summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:09:41 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-09-27 16:09:41 (GMT)
commiteaaa292603f3fba8e59e120e872138246b2c1b04 (patch)
tree18782e2b3c1d1519087666a1566fe9ed4882aa88 /tools/h5tools.c
parentb4dbf55fbefa45eeeceea2db8fa98570292ac098 (diff)
downloadhdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.zip
hdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.tar.gz
hdf5-eaaa292603f3fba8e59e120e872138246b2c1b04.tar.bz2
[svn-r1667] same fixes from the release branch were done here.
just casts with the parameters for the isdigit and isprint functions
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 df40ae3..36ce038 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -435,7 +435,7 @@ h5dump_escape(char *s/*in,out*/, size_t size, int escape_spaces)
escape = escape_spaces ? "\\ " : NULL;
break;
default:
- if (!isprint(*s)) {
+ if (!isprint((int)*s)) {
sprintf(octal, "\\%03o", (unsigned char)(s[i]));
escape = octal;
} else {
@@ -668,7 +668,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, "\\t");
break;
default:
- if (isprint(*((char*)vp))) {
+ if (isprint((int)(*((char*)vp)))) {
h5dump_str_append(str, "%c", *((char*)vp));
} else {
h5dump_str_append(str, "\\%03o", *((unsigned char*)vp));
@@ -736,7 +736,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, "\\t");
break;
default:
- if (isprint(((char*)vp)[i])) {
+ if (isprint((int)((char*)vp)[i])) {
h5dump_str_append(str, "%c", ((char*)vp)[i]);
} else {
h5dump_str_append(str, "\\%03o", ((unsigned char*)vp)[i]);