diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-09 17:07:12 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-09 17:07:12 +0000 |
commit | b3e1ad7a5d972ee947831e9d943a12c239864e72 (patch) | |
tree | 942ff3cd3fcca975d462a25441a985908b99a0a3 /src | |
parent | b35b31b0f88f89c4afd23b79946263926317e087 (diff) | |
download | coreutils-b3e1ad7a5d972ee947831e9d943a12c239864e72.tar.xz |
(print_it): Don't assume char is unsigned.
Diffstat (limited to 'src')
-rw-r--r-- | src/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c index 8b8f89a57..4c6047c25 100644 --- a/src/stat.c +++ b/src/stat.c @@ -653,13 +653,13 @@ print_it (char const *format, char const *filename, putchar (esc_value); --b; } - else if (*b == 'x' && ISXDIGIT (b[1])) + else if (*b == 'x' && isxdigit (to_uchar (b[1]))) { int esc_value = hextobin (b[1]); /* Value of \xhh escape. */ /* A hexadecimal \xhh escape sequence must have 1 or 2 hex. digits. */ ++b; - if (ISXDIGIT (b[1])) + if (isxdigit (to_uchar (b[1]))) { ++b; esc_value = esc_value * 16 + hextobin (*b); |