diff options
Diffstat (limited to 'test/format/ops.c')
-rw-r--r-- | test/format/ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/format/ops.c b/test/format/ops.c index 7fd5563f486..c97d82809a1 100644 --- a/test/format/ops.c +++ b/test/format/ops.c @@ -1465,7 +1465,7 @@ print_item(const char *tag, WT_ITEM *item) static const char hex[] = "0123456789abcdef"; const uint8_t *data; size_t size; - int ch; + u_char ch; data = item->data; size = item->size; @@ -1476,8 +1476,8 @@ print_item(const char *tag, WT_ITEM *item) else for (; size > 0; --size, ++data) { ch = data[0]; - if (isprint(ch)) - fprintf(stderr, "%c", ch); + if (__wt_isprint(ch)) + fprintf(stderr, "%c", (int)ch); else fprintf(stderr, "%x%x", hex[(data[0] & 0xf0) >> 4], |