Add cast to avoid signed/unsigned warning.
authorIan Lance Taylor <iant@google.com>
Wed, 2 Jan 2008 23:55:37 +0000 (23:55 +0000)
committerIan Lance Taylor <iant@google.com>
Wed, 2 Jan 2008 23:55:37 +0000 (23:55 +0000)
gold/fileread.cc

index 010c2eebbad9bac95e11ab9184defcde32a40841..ac96f5fcf4ae5ed50ca6343334d2bee3ae00bddf 100644 (file)
@@ -454,8 +454,11 @@ File_read::read_multiple(off_t base, const Read_multiple& rm)
              for (size_t k = i; k < j; ++k)
                {
                  const Read_multiple_entry& k_entry(rm[k]);
-                 gold_assert(k_entry.file_offset - i_off + k_entry.size
-                             <= end_off - i_off);
+                 gold_assert((convert_to_section_size_type(k_entry.file_offset
+                                                           - i_off)
+                               + k_entry.size)
+                             <= convert_to_section_size_type(end_off
+                                                              - i_off));
                  memcpy(k_entry.buffer,
                         v + (k_entry.file_offset - i_off),
                         k_entry.size);
This page took 0.023967 seconds and 4 git commands to generate.