diff options
author | Alan Modra <amodra@gmail.com> | 2006-04-19 02:15:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-04-19 02:15:05 +0000 |
commit | 7c6646cd4bb737511abda361b27386a8a77a1147 (patch) | |
tree | 0877c0e626e6298d38857b0ab3a636607d7e34f7 | |
parent | abe6ac950ca4e7ac410aa1efc143b67fb4d229bf (diff) | |
download | gdb-7c6646cd4bb737511abda361b27386a8a77a1147.zip gdb-7c6646cd4bb737511abda361b27386a8a77a1147.tar.gz gdb-7c6646cd4bb737511abda361b27386a8a77a1147.tar.bz2 |
* avr-dis.c (avr_operand): Warning fix.
-rw-r--r-- | opcodes/ChangeLog | 2 | ||||
-rw-r--r-- | opcodes/avr-dis.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9a848fa..657f66a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,7 @@ 2006-04-19 Alan Modra <amodra@bigpond.net.au> + * avr-dis.c (avr_operand): Warning fix. + * configure: Regenerate. 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com> diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c index 7938dca..ac37752 100644 --- a/opcodes/avr-dis.c +++ b/opcodes/avr-dis.c @@ -142,7 +142,7 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra /* See PR binutils/2545. Ideally we would like to display the hex value of the address only once, but this would mean recoding objdump_print_address() which would affect many targets. */ - sprintf (buf, "%#lx", * sym_addr); + sprintf (buf, "%#lx", (unsigned long ) *sym_addr); sprintf (comment, "0x"); break; |