diff options
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index baa681a..defb3a0 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -288,7 +288,7 @@ File_read::find_or_make_view(off_t start, section_size_type size, bool cache) section_size_type psize = File_read::pages(size + (start - poff)); - if (poff + psize >= this->size_) + if (poff + static_cast<off_t>(psize) >= this->size_) { psize = this->size_ - poff; gold_assert(psize >= size); |