gold patch: Add casts to avoid warning

Ian Lance Taylor iant@google.com
Tue Sep 16 17:20:00 GMT 2008


I had to add a couple of casts to avoid a warning about comparing
signed and unsigned values with g++ 4.2.2.  Figuring out the right
casts was a little tricky since this is a comparison between off_t and
size_t, overflow is definitely possible, and it's hard to know which
of off_t and size_t is larger for any given compiler/OS.  I punted and
cast both values to unsigned long long.

Ian


2008-09-16  Ian Lance Taylor  <iant@google.com>

	* fileread.cc (make_view): Add casts to avoid warning.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 799 bytes
Desc: Add casts to avoid warning
URL: <https://sourceware.org/pipermail/binutils/attachments/20080916/9a1a62d0/attachment.bin>


More information about the Binutils mailing list