From ebf32d493f9d121980e30f2d9360752e7dcb755b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 24 Jan 2025 14:42:49 +0000 Subject: [PATCH] Revert "dc: explicitly declare signed char for number buffers" This reverts commit 9cafebe8d004da4c59b82f46e14f668927a9c535. Breaks compile on fussier targets due to sign/unsigned confusion --- Applications/V7/cmd/dc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Applications/V7/cmd/dc.c b/Applications/V7/cmd/dc.c index f55675162..bc9ff5319 100644 --- a/Applications/V7/cmd/dc.c +++ b/Applications/V7/cmd/dc.c @@ -45,10 +45,10 @@ #define errorrt(p) {printf(p); return NULL; } struct blk { - signed char *rd; - signed char *wt; - signed char *beg; - signed char *last; + char *rd; + char *wt; + char *beg; + char *last; }; struct sym { struct sym *next; @@ -145,8 +145,8 @@ void (*outdit) (struct blk *, int); int logo; int intlog10; int count; -signed char *pp; -signed char *dummy; +char *pp; +char *dummy; int main(int argc, char *argv[]) { @@ -1958,7 +1958,7 @@ struct blk *copy(struct blk *hptr, int size) { register struct blk *hdr; register unsigned sz; - register signed char *ptr; + register char *ptr; all++; nbytes += size; @@ -1985,7 +1985,7 @@ struct blk *copy(struct blk *hptr, int size) void sdump(char *s1, struct blk *hptr) { - signed char *p; + char *p; printf("%s %o rd %o wt %o beg %o last %o\n", s1, hptr, hptr->rd, hptr->wt, hptr->beg, hptr->last); p = hptr->beg; @@ -1996,7 +1996,7 @@ void sdump(char *s1, struct blk *hptr) void seekc(struct blk *hptr, int n) { - signed char *nn, *p; + char *nn, *p; nn = hptr->beg + n; if (nn > hptr->last) { @@ -2123,7 +2123,7 @@ void garbage(char *s) void redef(struct blk *p) { register int offset; - register signed char *newp; + register char *newp; if ((int) p->beg & 01) { printf("odd ptr %o hdr %o\n", p->beg, p);