From 74374cc8a40c450423785015c2e30d5a2ed2920c Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 31 Oct 2005 16:42:32 +0000 Subject: ctype sign fixes (Tom Miller) --- src/cmd/eqn/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/eqn/input.c') diff --git a/src/cmd/eqn/input.c b/src/cmd/eqn/input.c index 85a57366..a7432f33 100644 --- a/src/cmd/eqn/input.c +++ b/src/cmd/eqn/input.c @@ -189,9 +189,9 @@ input(void) ERROR "argfp underflow" FATAL; popsrc(); goto loop; - } else if (c == '$' && isdigit(*srcp->sp)) { + } else if (c == '$' && isdigit((uchar)*srcp->sp)) { int n = 0; - while (isdigit(*srcp->sp)) + while (isdigit((uchar)*srcp->sp)) n = 10 * n + *srcp->sp++ - '0'; if (n > 0 && n <= MAXARGS) pushsrc(String, argfp->argstk[n-1]); -- cgit v1.2.3