diff options
author | rsc <devnull@localhost> | 2005-10-31 16:47:30 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-31 16:47:30 +0000 |
commit | a47fbb16412bbec1507d00be3cade04cce2536fe (patch) | |
tree | 0febccaf7a7674f3ec5d8357a85bd4441dc44078 /src/cmd/troff | |
parent | 96029e052b1408ca1d07ade8fd8c5bc10b2cd710 (diff) | |
download | plan9port-a47fbb16412bbec1507d00be3cade04cce2536fe.tar.gz plan9port-a47fbb16412bbec1507d00be3cade04cce2536fe.tar.bz2 plan9port-a47fbb16412bbec1507d00be3cade04cce2536fe.zip |
ctype sign fixes (Tom Miller)
Diffstat (limited to 'src/cmd/troff')
-rw-r--r-- | src/cmd/troff/n10.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/troff/n10.c b/src/cmd/troff/n10.c index 91579480..eaa5a57a 100644 --- a/src/cmd/troff/n10.c +++ b/src/cmd/troff/n10.c @@ -4,6 +4,7 @@ n10.c Device interfaces */ +#include <u.h> #include "tdef.h" #include "ext.h" #include "fns.h" @@ -48,7 +49,7 @@ static char *parse(char *s, int typeit) /* convert \0, etc to nroff driving tabl *t++ = *s++; else { s++; /* skip \\ */ - if (isdigit(s[0]) && isdigit(s[1]) && isdigit(s[2])) { + if (isdigit((uchar)s[0]) && isdigit((uchar)s[1]) && isdigit((uchar)s[2])) { *t++ = (s[0]-'0')<<6 | (s[1]-'0')<<3 | s[2]-'0'; s += 2; } else if (isdigit(s[0])) { |