This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile time warning introduced by previous delta.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 3 Jan 2018 17:33:33 -0000
- Subject: [binutils-gdb] Fix compile time warning introduced by previous delta.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f13974bda3d53e47b7fe5a358e963073184ba17e
commit f13974bda3d53e47b7fe5a358e963073184ba17e
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jan 3 17:32:59 2018 +0000
Fix compile time warning introduced by previous delta.
* objcopy.c (merge_gnu_build_notes): Add cast to maximum address
constants.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/objcopy.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8771aec..b7915b1 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
2018-01-03 Nick Clifton <nickc@redhat.com>
+ * objcopy.c (merge_gnu_build_notes): Add cast to maximum address
+ constants.
+
+2018-01-03 Nick Clifton <nickc@redhat.com>
+
* objcopy.c (objcopy_internal_note): New structure.
(gap_exists): New function.
(is_open_note): New function.
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 77193b1..1e39f6d 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -2064,7 +2064,7 @@ merge_gnu_build_notes (bfd * abfd, asection * sec, bfd_size_type size, bfd_byte
For now though, since v1 and v2 was not intended to
handle gaps, we chose an artificially large end
address. */
- end = 0x7ffffffffffffffUL;
+ end = (bfd_vma) 0x7ffffffffffffffUL;
break;
case 8:
@@ -2083,7 +2083,7 @@ merge_gnu_build_notes (bfd * abfd, asection * sec, bfd_size_type size, bfd_byte
For now though, since v1 and v2 was not intended to
handle gaps, we chose an artificially large end
address. */
- end = 0x7ffffffffffffffUL;
+ end = (bfd_vma) 0x7ffffffffffffffUL;
}
break;