diff options
| author | Emil Skoeldberg <[email protected]> | 2018-04-26 18:11:55 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2018-04-26 22:49:36 +0200 |
| commit | e7a387585992a9378ba2f2319c2408c62a0b14e8 (patch) | |
| tree | f7d21d2165b8017f3a28a3452a0da716f8e34b87 /fold.c | |
| parent | 39b1f468b09d94cac6ec65a8c0fbc210e3c9989e (diff) | |
Fix compiler warnings.
Compiler warned about comparison between signed and unsigned values.
Diffstat (limited to 'fold.c')
| -rw-r--r-- | fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -221,7 +221,7 @@ fold(Fn *fn) for (p=b->phi; p; p=p->link) visitphi(p, n, fn); if (b->visit == 0) { - for (i=b->ins; i-b->ins < b->nins; i++) + for (i=b->ins; i<&b->ins[b->nins]; i++) visitins(i, fn); visitjmp(b, n, fn); } @@ -289,7 +289,7 @@ fold(Fn *fn) renref(&p->arg[a]); pp = &p->link; } - for (i=b->ins; i-b->ins < b->nins; i++) + for (i=b->ins; i<&b->ins[b->nins]; i++) if (renref(&i->to)) *i = (Ins){.op = Onop}; else |
