This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

avr-dis.c build breakage


This fixes a warning that breaks --enable-targets=all
--enable-64-bit-bfd builds.

	* avr-dis.c (avr_operand): Warning fix.

Index: opcodes/avr-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/avr-dis.c,v
retrieving revision 1.16
diff -u -p -r1.16 avr-dis.c
--- opcodes/avr-dis.c	12 Apr 2006 13:09:10 -0000	1.16
+++ opcodes/avr-dis.c	19 Apr 2006 02:12:09 -0000
@@ -142,7 +142,7 @@ avr_operand (unsigned int insn, unsigned
       /* 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;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]