From fb76791b97c3ba8878d5db47bb77d440f8a1ef75 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 1 Sep 2022 19:04:45 +0200 Subject: remove two unsigned We have a uint alias that we use everywhere else. I also added a todo about unhandled large offsets in arm64/emit. --- arm64/emit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arm64') diff --git a/arm64/emit.c b/arm64/emit.c index 694abf3..55f5ce6 100644 --- a/arm64/emit.c +++ b/arm64/emit.c @@ -158,7 +158,7 @@ emitf(char *s, Ins *i, E *e) Ref r; int k, c; Con *pc; - unsigned n, sp; + uint n, sp; fputc('\t', e->f); @@ -255,6 +255,7 @@ loadcon(Con *c, int r, int k, FILE *f) if (c->type == CAddr) { rn = rname(r, Kl); if (n) + /* todo, handle large offsets */ sprintf(off, "+%"PRIi64, n); else off[0] = 0; @@ -278,7 +279,7 @@ loadcon(Con *c, int r, int k, FILE *f) if ((!w && sh == 32) || sh == 64) break; fprintf(f, "\tmovk\t%s, #0x%x, lsl #%d\n", - rn, (unsigned)(n & 0xffff), sh); + rn, (uint)(n & 0xffff), sh); } } } -- cgit 1.4.1