commit d463ddfc8e81b2c107e958767ad8b5afe685994d
parent 874d8f3c5c9165988f6c51bebfa6104a2186ce88
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 17 Oct 2024 12:15:07 +0200
as/i386: Use unsigned char instead of char
The i386 platform has many different registers and
we go over the limit of 127, and for that reason there
were truncations in the statically initialized data.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/as/target/x86/i386.c b/src/cmd/as/target/x86/i386.c
@@ -12,7 +12,7 @@ iarch(void)
{
static struct {
char *name;
- char type;
+ unsigned char type;
} regs[] = {
"CS", AREG_CS,
"DS", AREG_DS,