diff options
author | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-31 16:42:32 +0000 |
commit | 74374cc8a40c450423785015c2e30d5a2ed2920c (patch) | |
tree | 1d8a5ca97056a320115a342fd251aa0cf0cda751 /src/cmd/troff/n8.c | |
parent | b330c942b468ab82fd8853590145187e859258cb (diff) | |
download | plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.tar.gz plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.tar.bz2 plan9port-74374cc8a40c450423785015c2e30d5a2ed2920c.zip |
ctype sign fixes (Tom Miller)
Diffstat (limited to 'src/cmd/troff/n8.c')
-rw-r--r-- | src/cmd/troff/n8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/troff/n8.c b/src/cmd/troff/n8.c index ded45438..b2ab175b 100644 --- a/src/cmd/troff/n8.c +++ b/src/cmd/troff/n8.c @@ -1,3 +1,4 @@ +#include <u.h> #include "tdef.h" #include "fns.h" #include "ext.h" @@ -495,7 +496,7 @@ static void install(char *s) /* map ab4c5de to: 12 abcde \0 00405 \0 */ num[0] = '0'; *nextpat++ = ' '; /* fill in with count later */ for (npat = lastpat = 0; *s != '\n' && *s != '\0'; s++) { - if (isdigit(*s)) { + if (isdigit((uchar)*s)) { num[npat] = *s; lastpat = npat; } else { |