From 4f0be4d51f6842ac432ab24c2091b57806837a69 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 27 Feb 2015 22:16:14 -0800 Subject: [PATCH] ART: Fix off-by-two whitespace Follow-up to change 134380. Fix the whitespace to be printed. Fix style. It's surprising the linter did not complain. Change-Id: I3abcde3f401fa1fd4d7a847ff1f071fba23ce6a7 --- runtime/dex_instruction.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/dex_instruction.cc b/runtime/dex_instruction.cc index 92e0f070b..69fe87464 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(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(insn[i] & 0x00FF), + static_cast((insn[i] & 0xFF00) >> 8)) << " "; } for (size_t i = inst_length; i < instr_code_units; i++) { - os << " "; + os << " "; } return os.str(); } -- 2.11.0