summaryrefslogtreecommitdiff
path: root/opcodes/avr-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-04-19 02:15:05 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-04-19 02:15:05 +0000
commitbe0d17142934656a37b73b9e18fb9f2049ba08f9 (patch)
tree282a691e4541697a86475db70ea846986ff33fa7 /opcodes/avr-dis.c
parentaefacc20db247f35a237d1934c3dee921cedd689 (diff)
downloadbinutils-redhat-be0d17142934656a37b73b9e18fb9f2049ba08f9.tar.gz
* avr-dis.c (avr_operand): Warning fix.
Diffstat (limited to 'opcodes/avr-dis.c')
-rw-r--r--opcodes/avr-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c
index 7938dcadba..ac3775212e 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;