summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/dex_instruction.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/dex_instruction.cc b/runtime/dex_instruction.cc
index 92e0f070bc..69fe87464d 100644
--- a/runtime/dex_instruction.cc
+++ b/runtime/dex_instruction.cc
@@ -142,11 +142,11 @@ std::string Instruction::DumpHexLE(size_t instr_code_units) const {
std::ostringstream os;
const uint16_t* insn = reinterpret_cast<const uint16_t*>(this);
for (size_t i = 0; i < inst_length; i++) {
- os << StringPrintf("%02x%02x", (uint8_t)(insn[i] & 0x00FF),
- (uint8_t)((insn[i] & 0xFF00)>>8)) << " ";
+ os << StringPrintf("%02x%02x", static_cast<uint8_t>(insn[i] & 0x00FF),
+ static_cast<uint8_t>((insn[i] & 0xFF00) >> 8)) << " ";
}
for (size_t i = inst_length; i < instr_code_units; i++) {
- os << " ";
+ os << " ";
}
return os.str();
}