diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-02-24 13:38:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-02-24 13:38:01 +0000 |
commit | 4197429e2d54897576f8ecb22fe4afc1251657e5 (patch) | |
tree | bddff5745d9f72e8c68fa1083f4c81f89dce9b69 /opcodes/cris-dis.c | |
parent | 2a979e5e9e6ead3fdd4727f3b6429ab6076a58ca (diff) | |
download | binutils-redhat-4197429e2d54897576f8ecb22fe4afc1251657e5.tar.gz |
* cris-dis.c (format_hex): Remove ineffective warning fix.
* crx-dis.c (make_instruction): Warning fix.
* frv-asm.c: Regenerate.
Diffstat (limited to 'opcodes/cris-dis.c')
-rw-r--r-- | opcodes/cris-dis.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/opcodes/cris-dis.c b/opcodes/cris-dis.c index 372f08512b..b6b7559ed6 100644 --- a/opcodes/cris-dis.c +++ b/opcodes/cris-dis.c @@ -448,10 +448,8 @@ format_hex (number, outbuffer, disdata) char *outbuffer; struct cris_disasm_data *disdata; { - /* Obfuscate to avoid warning on 32-bit host, but properly truncate - negative numbers on >32-bit hosts. */ - if (sizeof (number) > 4) - number &= (1 << (sizeof (number) > 4 ? 32 : 1)) - 1; + /* Truncate negative numbers on >32-bit hosts. */ + number &= 0xffffffff; sprintf (outbuffer, "0x%lx", number); |