diff options
author | Ed Maste <emaste@FreeBSD.org> | 2017-08-18 18:20:51 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2017-08-18 18:20:51 +0000 |
commit | e80e4f3aca2ead8be4e4731f140a6efca5697d24 (patch) | |
tree | c75448cc2aed44306d16d78ddf84ed53bb6e2c81 /contrib/binutils | |
parent | 3954b52f282721e2aa32cdc81ebd81580ab1582b (diff) | |
download | src-e80e4f3aca2ead8be4e4731f140a6efca5697d24.tar.gz src-e80e4f3aca2ead8be4e4731f140a6efca5697d24.zip |
bfd: cast BFD_ALIGN to fix clang error on mips
error: implicit conversion from 'bfd_vma' (aka 'unsigned long long')
to 'int' changes value from 18446744073709551615 to -1
return BFD_ALIGN (ret, 16);
~~~~~~ ^~~~~~~~~~~~~~~~~~~
note: expanded from macro 'BFD_ALIGN'
: ~ (bfd_vma) 0)
^~~~~~~~~~~~~
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=322670
Diffstat (limited to 'contrib/binutils')
-rw-r--r-- | contrib/binutils/bfd/ecoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/binutils/bfd/ecoff.c b/contrib/binutils/bfd/ecoff.c index 52a9941a9156..afdb63c4d76f 100644 --- a/contrib/binutils/bfd/ecoff.c +++ b/contrib/binutils/bfd/ecoff.c @@ -1878,7 +1878,7 @@ _bfd_ecoff_sizeof_headers (bfd *abfd, ret = (bfd_coff_filhsz (abfd) + bfd_coff_aoutsz (abfd) + c * bfd_coff_scnhsz (abfd)); - return BFD_ALIGN (ret, 16); + return (int) BFD_ALIGN (ret, 16); } /* Get the contents of a section. */ |