Add a cast to avoid a compilation error.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 22 May 2010 01:06:49 +0000 (01:06 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 22 May 2010 01:06:49 +0000 (01:06 +0000)
2010-05-21  Doug Kwan  <dougkwan@google.com>

PR gold/11619
* arm.cc (Arm_input_section::do_output_offset): Add a cast to
avoid a compilation error.

gold/ChangeLog
gold/arm.cc

index ed61c258b1afd79b8f1ce98e59904e236a950c8c..c9ecbe7994e805d39f6c99375f59cfb3b04325fa 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-21  Doug Kwan  <dougkwan@google.com>
+
+       PR gold/11619
+       * arm.cc (Arm_input_section::do_output_offset): Add a cast to
+       avoid a compilation error.
+
 2010-05-19  Rafael Espindola  <espindola@google.com>
 
        * script-sections.cc (Output_section_definition::allocate_to_segment):
index 3dc2f22023e50c9dbcc67b5dab8de6d133ee5e53..31454e9562a068a4871f7c8fa33e5ec8c21469ff 100644 (file)
@@ -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<section_offset_type>(this->original_size_)))
       {
        *poutput = offset;
        return true;
This page took 0.033679 seconds and 4 git commands to generate.