diff options
author | Andreas Gampe <agampe@google.com> | 2015-02-27 22:16:14 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-02-27 22:16:14 -0800 |
commit | 4f0be4d51f6842ac432ab24c2091b57806837a69 (patch) | |
tree | e9a6c00d51f5fe01ae41ea08a7b62a7ae7487d41 | |
parent | 02abb5075f3085e69c0c81fb5724c066f6c845b7 (diff) | |
download | art-4f0be4d51f6842ac432ab24c2091b57806837a69.tar.gz art-4f0be4d51f6842ac432ab24c2091b57806837a69.tar.bz2 art-4f0be4d51f6842ac432ab24c2091b57806837a69.zip |
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
-rw-r--r-- | runtime/dex_instruction.cc | 6 |
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(); } |