From ae3e2ab146c03a6e2d451e9fde002a66b10ea46f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 1 Dec 2007 06:45:21 +0000 Subject: [PATCH] Add casts to avoid warnings. --- gold/stringpool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gold/stringpool.cc b/gold/stringpool.cc index 6d3ecfa0e1..39bb9d0c35 100644 --- a/gold/stringpool.cc +++ b/gold/stringpool.cc @@ -430,8 +430,9 @@ Stringpool_template::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(this->strtab_size_)) + gold_assert(bufsize >= static_cast(this->strtab_size_)); if (this->zero_null_) buffer[0] = '\0'; for (typename String_set_type::const_iterator p = this->string_set_.begin();