aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-19 01:18:41 +0000
committerIan Lance Taylor <iant@google.com>2007-12-19 01:18:41 +0000
commit9bb53bf8b866ee59d66c14250aee4bfaed0604ca (patch)
tree5496c714e81590be1135c589ad74a784d99eb457 /gold/fileread.cc
parentc0873094f582f8dffda7eaea2ea21bd87f351570 (diff)
downloadgdb-9bb53bf8b866ee59d66c14250aee4bfaed0604ca.zip
gdb-9bb53bf8b866ee59d66c14250aee4bfaed0604ca.tar.gz
gdb-9bb53bf8b866ee59d66c14250aee4bfaed0604ca.tar.bz2
Avoid some warnings which showed up in 64-bit mode.
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 338a943..3050154 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -291,7 +291,7 @@ File_read::find_or_make_view(off_t start, section_size_type size, bool cache)
if (poff + psize >= this->size_)
{
psize = this->size_ - poff;
- gold_assert(psize >= size);
+ gold_assert(psize >= static_cast<off_t>(size));
}
File_read::View* v;