summaryrefslogtreecommitdiff
path: root/gold/dwp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/dwp.cc')
-rw-r--r--gold/dwp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/dwp.cc b/gold/dwp.cc
index eb9e152fa9..c6453bfdef 100644
--- a/gold/dwp.cc
+++ b/gold/dwp.cc
@@ -1476,7 +1476,7 @@ Dwp_output_file::add_contribution(elfcpp::DW_SECT section_id,
int align)
{
const char* section_name = get_dwarf_section_name(section_id);
- gold_assert(section_id < this->section_id_map_.size());
+ gold_assert(static_cast<size_t>(section_id) < this->section_id_map_.size());
unsigned int shndx = this->section_id_map_[section_id];
// Create the section if necessary.