* avr-dis.c (avr_operand): Warning fix.
[deliverable/binutils-gdb.git] / opcodes / avr-dis.c
index 7938dcadbaf44feb610c4976edf714a44789fde8..ac3775212e84f3d2e51147e159f9326438eec0c6 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;
This page took 0.024679 seconds and 4 git commands to generate.