Fix compile time warning introduced by previous delta.
authorNick Clifton <nickc@redhat.com>
Wed, 3 Jan 2018 17:32:59 +0000 (17:32 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 3 Jan 2018 17:32:59 +0000 (17:32 +0000)
* objcopy.c (merge_gnu_build_notes): Add cast to maximum address
constants.

binutils/ChangeLog
binutils/objcopy.c

index 8771aeca99fc1507f0d1b54be09a0559e9c4cfa5..b7915b17bd9a4ee104c370651e182b49548e6ebe 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 77193b155e376cfb17e1bc072a8d6cf8f00f7b71..1e39f6d8767d9c80b5348581a1fa14da2ddc76f4 100644 (file)
@@ -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;