From be0d17142934656a37b73b9e18fb9f2049ba08f9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 19 Apr 2006 02:15:05 +0000 Subject: [PATCH] * avr-dis.c (avr_operand): Warning fix. --- opcodes/ChangeLog | 2 ++ opcodes/avr-dis.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9a848faaaa..657f66ab7b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,7 @@ 2006-04-19 Alan Modra + * avr-dis.c (avr_operand): Warning fix. + * configure: Regenerate. 2006-04-16 Daniel Jacobowitz 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; -- 2.11.0