aboutsummaryrefslogtreecommitdiff
path: root/spill.c
diff options
context:
space:
mode:
authorEmil Skoeldberg <[email protected]>2018-04-26 18:11:55 +0100
committerQuentin Carbonneaux <[email protected]>2018-04-26 22:49:36 +0200
commite7a387585992a9378ba2f2319c2408c62a0b14e8 (patch)
treef7d21d2165b8017f3a28a3452a0da716f8e34b87 /spill.c
parent39b1f468b09d94cac6ec65a8c0fbc210e3c9989e (diff)
Fix compiler warnings.
Compiler warned about comparison between signed and unsigned values.
Diffstat (limited to 'spill.c')
-rw-r--r--spill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spill.c b/spill.c
index d3a11f7..77496f6 100644
--- a/spill.c
+++ b/spill.c
@@ -77,7 +77,7 @@ fillcost(Fn *fn)
}
}
n = b->loop;
- for (i=b->ins; i-b->ins < b->nins; i++) {
+ for (i=b->ins; i<&b->ins[b->nins]; i++) {
tmpuse(i->to, 0, n, fn);
tmpuse(i->arg[0], 1, n, fn);
tmpuse(i->arg[1], 1, n, fn);