This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Avoid compile time warning when building on 32-bit host.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2d5bddc1eb5d2c04ed142c7ba6fc13e2e3a28079

commit 2d5bddc1eb5d2c04ed142c7ba6fc13e2e3a28079
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Aug 2 11:06:28 2016 +0100

    Avoid compile time warning when building on 32-bit host.
    
    	PR binutils/17512
    	* resbin.c (bin_to_res_version): Cast variables to correct type
    	for printing in error message.

Diff:
---
 binutils/ChangeLog | 6 ++++++
 binutils/resbin.c  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 358b5a4..9aef046 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2016-08-02  Nick Clifton  <nickc@redhat.com>
+
+	PR binutils/17512
+	* resbin.c (bin_to_res_version): Cast variables to correct type
+	for printing in error message.
+
 2016-07-28  Nick Clifton  <nickc@redhat.com>
 
 	PR binutils/17512
diff --git a/binutils/resbin.c b/binutils/resbin.c
index 9ca5408..11aa638 100644
--- a/binutils/resbin.c
+++ b/binutils/resbin.c
@@ -964,7 +964,7 @@ bin_to_res_version (windres_bfd *wrbfd, const bfd_byte *data, rc_uint_type lengt
   /* PR 17512: The verlen field does not include padding length.  */
   if (verlen > length)
     fatal (_("version length %lu greater than resource length %lu"),
-	   verlen, length);
+	   (unsigned long) verlen, (unsigned long) length);
 
   if (type != 0)
     fatal (_("unexpected version type %d"), (int) type);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]