aboutsummaryrefslogtreecommitdiff
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
commit8d32f93595f28c70f21566384ca1dc8a441297b9 (patch)
treee15b3e44f7a3b3e81f270f0bdc12d1fe661c4ace /gold/fileread.cc
parent2e324ab383362a9497e286b5c56c58a6e40d7170 (diff)
downloadgdb-8d32f93595f28c70f21566384ca1dc8a441297b9.zip
gdb-8d32f93595f28c70f21566384ca1dc8a441297b9.tar.gz
gdb-8d32f93595f28c70f21566384ca1dc8a441297b9.tar.bz2
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 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);