summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-09-01 19:04:45 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-09-01 19:08:38 +0200
commitfb76791b97c3ba8878d5db47bb77d440f8a1ef75 (patch)
tree30a8b1155a9f905b814d50f5539850b90871081e
parentf135a0b1fdfd22b0f32e5021ab4e486e681129a1 (diff)
downloadroux-fb76791b97c3ba8878d5db47bb77d440f8a1ef75.tar.gz
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.
-rw-r--r--arm64/emit.c5
1 files changed, 3 insertions, 2 deletions
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);
 		}
 	}
 }