summaryrefslogtreecommitdiffstats
path: root/linker
diff options
context:
space:
mode:
authorNikola Veljkovic <Nikola.Veljkovic@imgtec.com>2015-01-28 16:18:52 +0100
committerNikola Veljkovic <Nikola.Veljkovic@imgtec.com>2015-01-28 16:19:18 +0100
commitdb3078d97b57224c2c845cefbd46adc77fadfb37 (patch)
tree661223283754d76c74e444f217f46c679d266ad9 /linker
parent385c07a74ca5438a6f7fe0ada2b461f880563073 (diff)
downloadbionic-db3078d97b57224c2c845cefbd46adc77fadfb37.zip
bionic-db3078d97b57224c2c845cefbd46adc77fadfb37.tar.gz
bionic-db3078d97b57224c2c845cefbd46adc77fadfb37.tar.bz2
Fix mips64 build. Replace explicit cast with static_cast
Change-Id: Ib08fbe8bb832884a3eb33904fe4d490759116cb2
Diffstat (limited to 'linker')
-rw-r--r--linker/linker_mips.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker_mips.cpp b/linker/linker_mips.cpp
index eb2ae84..7fbde3d 100644
--- a/linker/linker_mips.cpp
+++ b/linker/linker_mips.cpp
@@ -70,8 +70,8 @@ bool soinfo::relocate(ElfW(Rel)* rel, unsigned count, const soinfo_list_t& globa
if (ELF64_R_TYPE2(rel->r_info) != R_MIPS_64 ||
ELF64_R_TYPE3(rel->r_info) != R_MIPS_NONE) {
DL_ERR("Unexpected compound relocation type:%d type2:%d type3:%d @ %p (%zu)",
- type, (unsigned)ELF64_R_TYPE2(rel->r_info),
- (unsigned)ELF64_R_TYPE3(rel->r_info), rel, idx);
+ type, static_cast<unsigned>(ELF64_R_TYPE2(rel->r_info)),
+ static_cast<unsigned>(ELF64_R_TYPE3(rel->r_info)), rel, idx);
return false;
}
#endif