mirror of
https://github.com/revanced/smali.git
synced 2025-05-21 16:37:04 +02:00
Fix formatting issue with negative jump offsets in dump output
This commit is contained in:
parent
231034cf95
commit
70c5b247e6
@ -273,7 +273,7 @@ public class CodeItem {
|
||||
} else if (instruction instanceof OffsetInstruction) {
|
||||
int offset = ((OffsetInstruction)instruction).getCodeOffset();
|
||||
String sign = offset>=0?"+":"-";
|
||||
args.add(String.format("%s0x%x", sign, offset));
|
||||
args.add(String.format("%s0x%x", sign, Math.abs(offset)));
|
||||
} else if (instruction instanceof NarrowLiteralInstruction) {
|
||||
int value = ((NarrowLiteralInstruction)instruction).getNarrowLiteral();
|
||||
if (NumberUtils.isLikelyFloat(value)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user