* mmix-opc.c (O, Z): Force expression as unsigned long.

This commit is contained in:
Hans-Peter Nilsson 2005-03-19 04:23:24 +00:00
parent 2eea5cc9c9
commit d8d7c45959
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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