update 6g to new REGARG convention.

silence gcc warning.

R=ken
OCL=31583
CL=31583
This commit is contained in:
Russ Cox 2009-07-13 23:30:30 -07:00
parent e11447f7da
commit a6799963ef

View File

@ -844,7 +844,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case ACALL: /* funny */ case ACALL: /* funny */
if(REGEXT && v->type <= REGEXT && v->type > exregoffset) if(REGEXT && v->type <= REGEXT && v->type > exregoffset)
return 2; return 2;
if(REGARG && v->type == REGARG) if(REGARG >= 0 && v->type == (uchar)REGARG)
return 2; return 2;
if(s != A) { if(s != A) {
@ -857,7 +857,7 @@ copyu(Prog *p, Adr *v, Adr *s)
return 3; return 3;
case ATEXT: /* funny */ case ATEXT: /* funny */
if(REGARG && v->type == REGARG) if(REGARG >= 0 && v->type == (uchar)REGARG)
return 3; return 3;
return 0; return 0;
} }