aboutsummaryrefslogtreecommitdiff
path: root/bfd/pei-x86_64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-24 14:14:14 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-24 14:14:14 -0800
commit09eb8b7bd63c017dbd5e84ecc5497824b6e6a4c6 (patch)
tree91602cb1d5dac776582b88e9b32eb57ba5547921 /bfd/pei-x86_64.c
parentf5be95254d169859a5ebfbd4663a9cf669066968 (diff)
downloadgdb-09eb8b7bd63c017dbd5e84ecc5497824b6e6a4c6.zip
gdb-09eb8b7bd63c017dbd5e84ecc5497824b6e6a4c6.tar.gz
gdb-09eb8b7bd63c017dbd5e84ecc5497824b6e6a4c6.tar.bz2
Add cast to unsigned long
* pei-x86_64.c (pex64_bfd_print_pdata_section): Add cast to unsigned long.
Diffstat (limited to 'bfd/pei-x86_64.c')
-rw-r--r--bfd/pei-x86_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/pei-x86_64.c b/bfd/pei-x86_64.c
index 16d8899..51bf390 100644
--- a/bfd/pei-x86_64.c
+++ b/bfd/pei-x86_64.c
@@ -509,7 +509,8 @@ pex64_bfd_print_pdata_section (bfd *abfd, void *vfile, asection *pdata_section)
{
fprintf (file,
_("Warning: %s section size (%ld) is smaller than virtual size (%ld)\n"),
- pdata_section->name, datasize, stop);
+ pdata_section->name, (unsigned long) datasize,
+ (unsigned long) stop);
/* Be sure not to read passed datasize. */
stop = datasize / onaline;
}