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 /arm64/isel.c | |
| parent | 39b1f468b09d94cac6ec65a8c0fbc210e3c9989e (diff) | |
Fix compiler warnings.
Compiler warned about comparison between signed and unsigned values.
Diffstat (limited to 'arm64/isel.c')
| -rw-r--r-- | arm64/isel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arm64/isel.c b/arm64/isel.c index 59f1579..031ba11 100644 --- a/arm64/isel.c +++ b/arm64/isel.c @@ -232,7 +232,7 @@ arm64_isel(Fn *fn) b = fn->start; /* specific to NAlign == 3 */ /* or change n=4 and sz /= 4 below */ for (al=Oalloc, n=4; al<=Oalloc1; al++, n*=2) - for (i=b->ins; i-b->ins < b->nins; i++) + for (i=b->ins; i<&b->ins[b->nins]; i++) if (i->op == al) { if (rtype(i->arg[0]) != RCon) break; |
