From d8d7c45959665efa90e714144b33b2b555790796 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 19 Mar 2005 04:23:24 +0000 Subject: [PATCH] * mmix-opc.c (O, Z): Force expression as unsigned long. --- opcodes/ChangeLog | 4 ++++ opcodes/mmix-opc.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ed777b5503f..192c47ba1d1 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2005-03-19 Hans-Peter Nilsson + + * mmix-opc.c (O, Z): Force expression as unsigned long. + 2005-03-18 Nick Clifton * ip2k-asm.c: Regenerate. diff --git a/opcodes/mmix-opc.c b/opcodes/mmix-opc.c index 8d553e2299c..0298818ab38 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) ((m) << 24), ((~(m) & 255) << 24) +#define O(m) ((unsigned long) (m) << 24UL), ((~(unsigned long) (m) & 255) << 24) /* Bits 7..1 of the opcode are significant. */ #undef Z -#define Z(m) ((m) << 24), ((~(m) & 254) << 24) +#define Z(m) ((unsigned long) (m) << 24), ((~(unsigned long) (m) & 254) << 24) /* For easier overview of the table. */ #define N mmix_type_normal -- 2.30.2