From: H.J. Lu Date: Sat, 22 May 2010 01:06:49 +0000 (+0000) Subject: Add a cast to avoid a compilation error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7629558884498167643ba82061f15722971241b2;p=binutils-gdb.git Add a cast to avoid a compilation error. 2010-05-21 Doug Kwan PR gold/11619 * arm.cc (Arm_input_section::do_output_offset): Add a cast to avoid a compilation error. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index ed61c258b1a..c9ecbe7994e 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2010-05-21 Doug Kwan + + PR gold/11619 + * arm.cc (Arm_input_section::do_output_offset): Add a cast to + avoid a compilation error. + 2010-05-19 Rafael Espindola * script-sections.cc (Output_section_definition::allocate_to_segment): diff --git a/gold/arm.cc b/gold/arm.cc index 3dc2f22023e..31454e9562a 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -1202,7 +1202,7 @@ class Arm_input_section : public Output_relaxed_input_section if ((object == this->relobj()) && (shndx == this->shndx()) && (offset >= 0) - && (offset <= this->original_size_)) + && (offset <= static_cast(this->original_size_))) { *poutput = offset; return true;