* dwarf.c (display_debug_loc): Cast section_end - start to long
authorHans-Peter Nilsson <hp@axis.com>
Wed, 21 Nov 2007 17:50:41 +0000 (17:50 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 21 Nov 2007 17:50:41 +0000 (17:50 +0000)
for output format.

binutils/ChangeLog
binutils/dwarf.c

index 9b880a8071cfb7bfd882c550839c3150a79c15a2..13a162f686e1e4fdef1b373ed727ad230dfa57d6 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-21  Hans-Peter Nilsson  <hp@axis.com>
+
+       * dwarf.c (display_debug_loc): Cast section_end - start to long
+       for output format.
+
 2007-11-20  Nick Clifton  <nickc@redhat.com>
 
        * dwarf.c (display_debug_loc): Issue a warning if there are bytes
index a673564b2e8ae5f47b1d5302d225318c8ea5185f..6fa270db1ea7e3c37044a21534bdc661a841d582 100644 (file)
@@ -2627,7 +2627,7 @@ display_debug_loc (struct dwarf_section *section, void *file)
 
   if (start < section_end)
     warn (_("There are %ld unused bytes at the end of section %s\n"),
-         section_end - start, section->name);
+         (long) (section_end - start), section->name);
   return 1;
 }