summaryrefslogtreecommitdiff
path: root/src/cmd/5c/peep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/5c/peep.c')
-rw-r--r--src/cmd/5c/peep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/5c/peep.c b/src/cmd/5c/peep.c
index 8945ee732..c15bf0fc4 100644
--- a/src/cmd/5c/peep.c
+++ b/src/cmd/5c/peep.c
@@ -1100,7 +1100,7 @@ copyu(Prog *p, Adr *v, Adr *s)
if(v->type == D_REG) {
if(v->reg <= REGEXT && v->reg > exregoffset)
return 2;
- if(v->reg == REGARG)
+ if(v->reg == (uchar)REGARG)
return 2;
}
if(v->type == D_FREG)
@@ -1118,7 +1118,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case ATEXT: /* funny */
if(v->type == D_REG)
- if(v->reg == REGARG)
+ if(v->reg == (uchar)REGARG)
return 3;
return 0;
}