From: H.J. Lu Date: Sat, 19 Mar 2005 18:29:14 +0000 (+0000) Subject: 2005-03-19 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e493ab45b14a1970aa89dedd408aaf12645a278b;p=binutils-gdb.git 2005-03-19 H.J. Lu * mmix-opc.c (O): Use 24UL instead of 24 for unsigned long. (Z): Likewise. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 192c47ba1d1..53a23fe072f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2005-03-19 H.J. Lu + + * mmix-opc.c (O): Use 24UL instead of 24 for unsigned long. + (Z): Likewise. + 2005-03-19 Hans-Peter Nilsson * mmix-opc.c (O, Z): Force expression as unsigned long. diff --git a/opcodes/mmix-opc.c b/opcodes/mmix-opc.c index 0298818ab38..ecd3cb4ef08 100644 --- a/opcodes/mmix-opc.c +++ b/opcodes/mmix-opc.c @@ -67,11 +67,11 @@ const struct mmix_spec_reg mmix_spec_regs[] = /* All bits in the opcode-byte are significant. Add "| ..." expressions to add zero-bits. */ #undef O -#define O(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 255) << 24) +#define O(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 255) << 24UL) /* Bits 7..1 of the opcode are significant. */ #undef Z -#define Z(m) ((unsigned long) (m) << 24), ((~(unsigned long) (m) & 254) << 24) +#define Z(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 254) << 24UL) /* For easier overview of the table. */ #define N mmix_type_normal