From 76677ad0511926923fd951df8d73efb783ced103 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Sat, 17 Dec 2011 22:39:52 +0000 Subject: 2011-12-17 Cary Coutant * dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Add casts. * resolve.cc (Symbol_table::resolve): Likewise. * i386.cc (Target_i386::do_code_fill): Use char constants for nop arrays. * x86_64.cc (Target_x86_64::do_code_fill): Likewise. --- gold/resolve.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gold/resolve.cc') diff --git a/gold/resolve.cc b/gold/resolve.cc index 2a68876..780038a 100644 --- a/gold/resolve.cc +++ b/gold/resolve.cc @@ -336,9 +336,9 @@ Symbol_table::resolve(Sized_symbol* to, && to->name()[0] == '_' && to->name()[1] == 'Z') { Symbol_location fromloc - = { object, orig_st_shndx, sym.get_st_value() }; + = { object, orig_st_shndx, static_cast(sym.get_st_value()) }; Symbol_location toloc = { to->object(), to->shndx(&to_is_ordinary), - to->value() }; + static_cast(to->value()) }; this->candidate_odr_violations_[to->name()].insert(fromloc); this->candidate_odr_violations_[to->name()].insert(toloc); } -- cgit v1.1