From 7629558884498167643ba82061f15722971241b2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 22 May 2010 01:06:49 +0000 Subject: [PATCH] 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. --- gold/ChangeLog | 6 ++++++ gold/arm.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2