From 09eb8b7bd63c017dbd5e84ecc5497824b6e6a4c6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 24 Dec 2014 14:14:14 -0800 Subject: [PATCH] Add cast to unsigned long * pei-x86_64.c (pex64_bfd_print_pdata_section): Add cast to unsigned long. --- bfd/ChangeLog | 5 +++++ bfd/pei-x86_64.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index af3fe44..c85bd07 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-12-24 H.J. Lu + + * pei-x86_64.c (pex64_bfd_print_pdata_section): Add cast to + unsigned long. + 2014-12-24 Pierre Muller Add support for pdata output for pe coff objects. 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; } -- 2.7.4