aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-01 06:45:21 +0000
committerIan Lance Taylor <iant@google.com>2007-12-01 06:45:21 +0000
commitae3e2ab146c03a6e2d451e9fde002a66b10ea46f (patch)
tree1ab9c32f2f0f05e788ab08cef491b3173236891a /gold
parent96803768f1845a2c5af362ea2dc6b39a147d3930 (diff)
downloadfsf-binutils-gdb-ae3e2ab146c03a6e2d451e9fde002a66b10ea46f.zip
fsf-binutils-gdb-ae3e2ab146c03a6e2d451e9fde002a66b10ea46f.tar.gz
fsf-binutils-gdb-ae3e2ab146c03a6e2d451e9fde002a66b10ea46f.tar.bz2
Add casts to avoid warnings.
Diffstat (limited to 'gold')
-rw-r--r--gold/stringpool.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/stringpool.cc b/gold/stringpool.cc
index 6d3ecfa..39bb9d0 100644
--- a/gold/stringpool.cc
+++ b/gold/stringpool.cc
@@ -430,8 +430,9 @@ Stringpool_template<Stringpool_char>::write_to_buffer(unsigned char* buffer,
size_t bufsize)
{
gold_assert(this->strtab_size_ != 0);
- if (bufsize < this->strtab_size_) // Quiet the compiler in opt mode.
- gold_assert(bufsize >= this->strtab_size_);
+ // Quiet the compiler in opt mode.
+ if (bufsize < static_cast<size_t>(this->strtab_size_))
+ gold_assert(bufsize >= static_cast<size_t>(this->strtab_size_));
if (this->zero_null_)
buffer[0] = '\0';
for (typename String_set_type::const_iterator p = this->string_set_.begin();