From: Nick Clifton Date: Wed, 3 Jan 2018 17:32:59 +0000 (+0000) Subject: Fix compile time warning introduced by previous delta. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f13974bda3d53e47b7fe5a358e963073184ba17e;p=binutils-gdb.git Fix compile time warning introduced by previous delta. * objcopy.c (merge_gnu_build_notes): Add cast to maximum address constants. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8771aeca99f..b7915b17bd9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-01-03 Nick Clifton + + * objcopy.c (merge_gnu_build_notes): Add cast to maximum address + constants. + 2018-01-03 Nick Clifton * objcopy.c (objcopy_internal_note): New structure. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 77193b155e3..1e39f6d8767 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;