aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
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/output.h
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/output.h')
-rw-r--r--gold/output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/output.h b/gold/output.h
index 3d1a44d..07a336d 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -2323,7 +2323,8 @@ class Output_file
unsigned char*
get_output_view(off_t start, size_t size)
{
- gold_assert(start >= 0 && start + size <= this->file_size_);
+ gold_assert(start >= 0
+ && start + static_cast<off_t>(size) <= this->file_size_);
return this->base_ + start;
}