diff options
author | Nick Clifton <nickc@redhat.com> | 2006-05-22 08:40:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-05-22 08:40:09 +0000 |
commit | 91a51290ee0981ffd338decb728711b7f55c8c83 (patch) | |
tree | 8100f32016291455f1ecaa6ffc7d588897f620b8 /opcodes/crx-dis.c | |
parent | 0d465ffc602941c0c1b5e46c36100200cee8593d (diff) | |
download | binutils-redhat-91a51290ee0981ffd338decb728711b7f55c8c83.tar.gz |
* crx-dis.c (EXTRACT): Make macro work on 64-bit hosts.
Diffstat (limited to 'opcodes/crx-dis.c')
-rw-r--r-- | opcodes/crx-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 8f14e8ba92..8d51c75132 100644 --- a/opcodes/crx-dis.c +++ b/opcodes/crx-dis.c @@ -30,7 +30,7 @@ /* Extract 'n_bits' from 'a' starting from offset 'offs'. */ #define EXTRACT(a, offs, n_bits) \ - (n_bits == 32 ? (((a) >> (offs)) & ~0L) \ + (n_bits == 32 ? (((a) >> (offs)) & 0xffffffffL) \ : (((a) >> (offs)) & ((1 << (n_bits)) -1))) /* Set Bit Mask - a mask to set all bits starting from offset 'offs'. */ |