* avr-dis.c (avr_operand): Warning fix.
authorAlan Modra <amodra@gmail.com>
Wed, 19 Apr 2006 02:15:05 +0000 (02:15 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Apr 2006 02:15:05 +0000 (02:15 +0000)
opcodes/ChangeLog
opcodes/avr-dis.c

index 9a848fa..657f66a 100644 (file)
@@ -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>
index 7938dca..ac37752 100644 (file)
@@ -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;