Skip to content

Commit 3780aba

Browse files
dimitry-Gerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Fix mips64 build. Replace explicit cast with static_cast"
2 parents 385c07a + db3078d commit 3780aba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linker/linker_mips.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ bool soinfo::relocate(ElfW(Rel)* rel, unsigned count, const soinfo_list_t& globa
7070
if (ELF64_R_TYPE2(rel->r_info) != R_MIPS_64 ||
7171
ELF64_R_TYPE3(rel->r_info) != R_MIPS_NONE) {
7272
DL_ERR("Unexpected compound relocation type:%d type2:%d type3:%d @ %p (%zu)",
73-
type, (unsigned)ELF64_R_TYPE2(rel->r_info),
74-
(unsigned)ELF64_R_TYPE3(rel->r_info), rel, idx);
73+
type, static_cast<unsigned>(ELF64_R_TYPE2(rel->r_info)),
74+
static_cast<unsigned>(ELF64_R_TYPE3(rel->r_info)), rel, idx);
7575
return false;
7676
}
7777
#endif

0 commit comments

Comments
 (0)