Introduction
Introduction Statistics Contact Development Disclaimer Help
tmore signedness bugs - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 5ed63a9b4e4e552b3c0c27d34f3f1707e2f569ea
parent 14367520a219d579ff96ef610cf113859285d324
Author: rsc <devnull@localhost>
Date: Tue, 1 Nov 2005 18:06:00 +0000
more signedness bugs
Diffstat:
M src/cmd/eqn/e.h | 1 -
M src/cmd/eqn/input.c | 4 ++--
M src/cmd/eqn/size.c | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/cmd/eqn/e.h b/src/cmd/eqn/e.h
t@@ -1,4 +1,3 @@
-#include <u.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/cmd/eqn/input.c b/src/cmd/eqn/input.c
t@@ -189,9 +189,9 @@ input(void)
ERROR "argfp underflow" FATAL;
popsrc();
goto loop;
- } else if (c == '$' && isdigit((uchar)*srcp->sp)) {
+ } else if (c == '$' && isdigit((unsigned char)*srcp->sp)) {
int n = 0;
- while (isdigit((uchar)*srcp->sp))
+ while (isdigit((unsigned char)*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
t@@ -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((uchar)*p)) {
+ } else if (isdigit((unsigned char)*p)) {
if (szstack[nszstack-1] == 0)
printf(".nr %d \\n(.s\n", 99-nszstack);
else
t@@ -52,7 +52,7 @@ void globsize(void)
gsize -= atoi(temp+1);
if (szstack[0] != 0)
szstack[0] = gsize;
- } else if (isdigit((uchar)temp[0])) {
+ } else if (isdigit((unsigned char)temp[0])) {
gsize = atoi(temp);
szstack[0] = gsize;
printf(".nr 99 \\n(.s\n");
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.