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/eqn | |
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/eqn')
-rw-r--r-- | src/cmd/eqn/input.c | 4 | ||||
-rw-r--r-- | src/cmd/eqn/size.c | 4 |
2 files changed, 4 insertions, 4 deletions
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]); diff --git a/src/cmd/eqn/size.c b/src/cmd/eqn/size.c index 59bf3f20..67d3dae8 100644 --- a/src/cmd/eqn/size.c +++ b/src/cmd/eqn/size.c @@ -13,7 +13,7 @@ void setsize(char *p) /* set size as found in p */ ps -= atoi(p+1); if (szstack[nszstack-1] != 0) szstack[nszstack] = ps; - } else if (isdigit(*p)) { + } else if (isdigit((uchar)*p)) { if (szstack[nszstack-1] == 0) printf(".nr %d \\n(.s\n", 99-nszstack); else @@ -52,7 +52,7 @@ void globsize(void) gsize -= atoi(temp+1); if (szstack[0] != 0) szstack[0] = gsize; - } else if (isdigit(temp[0])) { + } else if (isdigit((uchar)temp[0])) { gsize = atoi(temp); szstack[0] = gsize; printf(".nr 99 \\n(.s\n"); |