added casts of pointer difference to integer
authoreck <none@none>
Mon, 17 Dec 1990 14:22:41 +0000 (14:22 +0000)
committereck <none@none>
Mon, 17 Dec 1990 14:22:41 +0000 (14:22 +0000)
mach/proto/ncg/codegen.c
mach/proto/ncg/subr.c

index 0a0bc31..8b7fae5 100644 (file)
@@ -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;
index c25cb0b..f27e333 100644 (file)
@@ -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)