aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-01-03 17:32:59 +0000
committerNick Clifton <nickc@redhat.com>2018-01-03 17:32:59 +0000
commitf13974bda3d53e47b7fe5a358e963073184ba17e (patch)
treeb667200d6da9460e369ba76966dce8f060c8a00f /binutils/objcopy.c
parent6f156d7a4ad1c245b357dc50f63f3564d397839e (diff)
downloadgdb-f13974bda3d53e47b7fe5a358e963073184ba17e.zip
gdb-f13974bda3d53e47b7fe5a358e963073184ba17e.tar.gz
gdb-f13974bda3d53e47b7fe5a358e963073184ba17e.tar.bz2
Fix compile time warning introduced by previous delta.
* objcopy.c (merge_gnu_build_notes): Add cast to maximum address constants.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c4
1 files changed, 2 insertions, 2 deletions
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;