Avoid compile time warning when building on 32-bit host.
authorNick Clifton <nickc@redhat.com>
Tue, 2 Aug 2016 10:06:28 +0000 (11:06 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 2 Aug 2016 10:06:28 +0000 (11:06 +0100)
PR binutils/17512
* resbin.c (bin_to_res_version): Cast variables to correct type
for printing in error message.

binutils/ChangeLog
binutils/resbin.c

index 358b5a4930d886dbb339ce6b7eb642742ded7ba7..9aef0468072e07b7fc9fd4cad79f9236db7f1b48 100644 (file)
@@ -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
index 9ca540853d349ffc1c99ed94df77cc99d5c1462d..11aa63874621acf4f6cab9e80e3abac6b3fd29c1 100644 (file)
@@ -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);
This page took 0.043382 seconds and 4 git commands to generate.