diff options
author | Ian Lance Taylor <iant@google.com> | 2008-01-02 23:55:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-01-02 23:55:37 +0000 |
commit | be2f3dec432cb1a3d46689cd3ea4402d25f12138 (patch) | |
tree | 4966c6c0c647618b9788a197c8737f0252c3b48d /gold/fileread.cc | |
parent | d978b5be20c2584a9a4b58b1292c191a950f04e5 (diff) | |
download | gdb-be2f3dec432cb1a3d46689cd3ea4402d25f12138.zip gdb-be2f3dec432cb1a3d46689cd3ea4402d25f12138.tar.gz gdb-be2f3dec432cb1a3d46689cd3ea4402d25f12138.tar.bz2 |
Add cast to avoid signed/unsigned warning.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index 010c2ee..ac96f5f 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -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); |