From: eck Date: Mon, 17 Dec 1990 14:22:41 +0000 (+0000) Subject: added casts of pointer difference to integer X-Git-Tag: release-5-5~1330 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e37c2492482cd796ff02fc93807ea6ff0decf16c;p=ack.git added casts of pointer difference to integer --- diff --git a/mach/proto/ncg/codegen.c b/mach/proto/ncg/codegen.c index 0a0bc3189..8b7fae58c 100644 --- a/mach/proto/ncg/codegen.c +++ b/mach/proto/ncg/codegen.c @@ -590,7 +590,7 @@ normalfailed: if (stackpad!=tokpatlen) { do { npos=exactmatch=0; for(rpp=reglist[propno];rp= *rpp; rpp++) - if (getrefcount(rp-machregs, FALSE)==0) { + if (getrefcount((int)(rp-machregs), FALSE)==0) { pos[npos++] = rp-machregs; if (eqtoken(&rp->r_contents,&token)) pos2[exactmatch++] = rp-machregs; diff --git a/mach/proto/ncg/subr.c b/mach/proto/ncg/subr.c index c25cb0ba5..f27e33385 100644 --- a/mach/proto/ncg/subr.c +++ b/mach/proto/ncg/subr.c @@ -564,7 +564,7 @@ unsigned stackupto(limit,ply,toplevel) token_p limit; { if (cp->c1_prop>=0) { for (rpp=reglist[cp->c1_prop]; (rp = *rpp)!=0 && - getrefcount(rp-machregs, TRUE)!=0; + getrefcount((int)(rp-machregs), TRUE)!=0; rpp++) ; if (rp==0)