summaryrefslogtreecommitdiff
path: root/binutils/coffdump.c
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2011-03-28 11:58:18 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2011-03-28 11:58:18 +0000
commit5dd7bcc4e550f30f72ad31f7686bd7d55d623cb7 (patch)
tree25a442b35f369292e0b1c698bb3eb11cb55339d2 /binutils/coffdump.c
parent9f9a0b1a43aeb6c5a10b20b06d92d93220006386 (diff)
downloadbinutils-redhat-5dd7bcc4e550f30f72ad31f7686bd7d55d623cb7.tar.gz
* coffdump.c (dump_coff_scope): Use double typecast for pointer P
to allow compilation for all targets.
Diffstat (limited to 'binutils/coffdump.c')
-rw-r--r--binutils/coffdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/coffdump.c b/binutils/coffdump.c
index 21114bc81d..d5ccb99c3a 100644
--- a/binutils/coffdump.c
+++ b/binutils/coffdump.c
@@ -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);