From d68a819777280a8f28fd4d67e3e6455a94d1e663 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 21 Nov 2007 17:50:41 +0000 Subject: [PATCH] * dwarf.c (display_debug_loc): Cast section_end - start to long for output format. --- binutils/ChangeLog | 5 +++++ binutils/dwarf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9b880a8071..13a162f686 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2007-11-21 Hans-Peter Nilsson + + * dwarf.c (display_debug_loc): Cast section_end - start to long + for output format. + 2007-11-20 Nick Clifton * dwarf.c (display_debug_loc): Issue a warning if there are bytes diff --git a/binutils/dwarf.c b/binutils/dwarf.c index a673564b2e..6fa270db1e 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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; } -- 2.11.0