* coffdump.c (dump_coff_scope): Use double typecast for pointer P

to allow compilation for all targets.
This commit is contained in:
Pierre Muller 2011-03-28 11:58:18 +00:00
parent 5b806d2793
commit 1a9911c3b8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
* dwarf.c (process_debug_info): Use offset_size to determine * dwarf.c (process_debug_info): Use offset_size to determine

View File

@ -365,7 +365,7 @@ dump_coff_scope (struct coff_scope *p)
if (p) if (p)
{ {
tab (1); 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) if (p->sec)
printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1); printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1);