aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff/n1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/troff/n1.c')
-rw-r--r--src/cmd/troff/n1.c5
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;