summaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-21 23:08:25 +0000
committerIan Lance Taylor <iant@google.com>2007-12-21 23:08:25 +0000
commit92a78412b76fd20c6fe7bd361a4fff4aa22c2f83 (patch)
tree22cd9f1f89e0c0e13eec230e06ed371df90347ef /gold/fileread.cc
parent2961fbe43bf2c6841b286101fd2844d318746522 (diff)
downloadbinutils-redhat-92a78412b76fd20c6fe7bd361a4fff4aa22c2f83.tar.gz
Correct handling of non-section symbol in merged section. Avoid some
64-bit signed/unsigned warnings.
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r--gold/fileread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index baa681a24c..defb3a0256 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);