* coffdump.c (dump_coff_scope): Use double typecast for pointer P
authorPierre Muller <muller@sourceware.org>
Mon, 28 Mar 2011 11:58:18 +0000 (11:58 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 28 Mar 2011 11:58:18 +0000 (11:58 +0000)
to allow compilation for all targets.

binutils/ChangeLog
binutils/coffdump.c

index 5af068b..f806edd 100644 (file)
@@ -1,5 +1,10 @@
 2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
 
+       * coffdump.c (dump_coff_scope): Use double typecast for pointer P
+       to allow compilation for all targets.
+
+2011-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
        * dwarf.c (process_debug_info): Use offset_size to determine
        the bit-size of the computation unit's offset.
        (decode_location_expression): Use dwarf_vmatoa function to display
index 21114bc..d5ccb99 100644 (file)
@@ -365,7 +365,7 @@ dump_coff_scope (struct coff_scope *p)
   if (p)
     {
       tab (1);
-      printf ("List of blocks %lx ",(unsigned long) p);
+      printf ("List of blocks %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t) p);
 
       if (p->sec)
        printf( "  %s %x..%x",  p->sec->name,p->offset, p->offset + p->size -1);