1
0
mirror of https://github.com/golang/go synced 2024-11-22 16:54:48 -07:00

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