Fix compiler warnings.

Compiler warned about comparison between signed and unsigned values.
This commit is contained in:
Emil Skoeldberg 2018-04-26 18:11:55 +01:00 committed by Quentin Carbonneaux
parent 39b1f468b0
commit e7a3875859
11 changed files with 21 additions and 21 deletions

2
rega.c
View file

@ -506,7 +506,7 @@ rega(Fn *fn)
for (bp=blk, b=fn->start; b; b=b->link)
*bp++ = b;
qsort(blk, fn->nblk, sizeof blk[0], carve);
for (b=fn->start, i=b->ins; i-b->ins < b->nins; i++)
for (b=fn->start, i=b->ins; i<&b->ins[b->nins]; i++)
if (i->op != Ocopy || !isreg(i->arg[0]))
break;
else {