public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab62dda
)
added casts of pointer difference to integer
author
eck
<none@none>
Mon, 17 Dec 1990 14:22:41 +0000
(14:22 +0000)
committer
eck
<none@none>
Mon, 17 Dec 1990 14:22:41 +0000
(14:22 +0000)
mach/proto/ncg/codegen.c
patch
|
blob
|
history
mach/proto/ncg/subr.c
patch
|
blob
|
history
diff --git
a/mach/proto/ncg/codegen.c
b/mach/proto/ncg/codegen.c
index
0a0bc31
..
8b7fae5
100644
(file)
--- 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
c25cb0b
..
f27e333
100644
(file)
--- 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)