Index: src/arm64/disasm-arm64.cc |
diff --git a/src/arm64/disasm-arm64.cc b/src/arm64/disasm-arm64.cc |
index ed3e928796bde139229ac22ff5c7f8476b65bd6a..9886d20d26e2af7124ca5e97f25fd24885c025c8 100644 |
--- a/src/arm64/disasm-arm64.cc |
+++ b/src/arm64/disasm-arm64.cc |
@@ -1632,10 +1632,9 @@ int Disassembler::SubstituteBranchTargetField(Instruction* instr, |
offset <<= kInstructionSizeLog2; |
char sign = '+'; |
if (offset < 0) { |
- offset = -offset; |
sign = '-'; |
} |
- AppendToOutput("#%c0x%" PRIx64 " (addr %p)", sign, offset, |
+ AppendToOutput("#%c0x%" PRIx64 " (addr %p)", sign, Abs(offset), |
instr->InstructionAtOffset(offset), Instruction::NO_CHECK); |
return 8; |
} |