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 ed61c258b1..c9ecbe7994 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 3dc2f22023..31454e9562 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;