aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mmix-opc.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-03-19 04:23:24 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-03-19 04:23:24 +0000
commitd8d7c45959665efa90e714144b33b2b555790796 (patch)
treea191958552bbba32b571f4e6829142e0d995bdc9 /opcodes/mmix-opc.c
parent2eea5cc9c94a2812b9df5135830bb1d0fdcb4f1e (diff)
downloadgdb-d8d7c45959665efa90e714144b33b2b555790796.zip
gdb-d8d7c45959665efa90e714144b33b2b555790796.tar.gz
gdb-d8d7c45959665efa90e714144b33b2b555790796.tar.bz2
* mmix-opc.c (O, Z): Force expression as unsigned long.
Diffstat (limited to 'opcodes/mmix-opc.c')
-rw-r--r--opcodes/mmix-opc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/mmix-opc.c b/opcodes/mmix-opc.c
index 8d553e2..0298818 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