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/n1.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/n1.c')
-rw-r--r-- | src/cmd/troff/n1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/troff/n1.c b/src/cmd/troff/n1.c index 7fe87b63..4c2bec4b 100644 --- a/src/cmd/troff/n1.c +++ b/src/cmd/troff/n1.c @@ -5,6 +5,7 @@ * input routines, escape function calling */ +#include <u.h> #include "tdef.h" #include "fns.h" #include "ext.h" @@ -1091,10 +1092,10 @@ void getpn(char *a) continue; default: n = 0; - if (isdigit(*a)) { + if (isdigit((uchar)*a)) { do n = 10 * n + *a++ - '0'; - while (isdigit(*a)); + while (isdigit((uchar)*a)); a--; } else n = 9999; |