aboutsummaryrefslogtreecommitdiff
path: root/opcodes
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
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')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/mmix-opc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index ed777b5..192c47b 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-19 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * mmix-opc.c (O, Z): Force expression as unsigned long.
+
2005-03-18 Nick Clifton <nickc@redhat.com>
* ip2k-asm.c: Regenerate.
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