diff --git a/dexlib/src/main/java/org/jf/dexlib/Code/Format/Instruction31t.java b/dexlib/src/main/java/org/jf/dexlib/Code/Format/Instruction31t.java index 4242f187..7da380a5 100644 --- a/dexlib/src/main/java/org/jf/dexlib/Code/Format/Instruction31t.java +++ b/dexlib/src/main/java/org/jf/dexlib/Code/Format/Instruction31t.java @@ -62,8 +62,7 @@ public class Instruction31t extends Instruction implements OffsetInstruction, Si protected void writeInstruction(AnnotatedOutput out, int currentCodeOffset) { out.writeByte(opcode.value); out.writeByte(regA); - //TODO: get offset from offsetTarget - out.writeInt(offset); + out.writeInt(offset + (((currentCodeOffset/2) + offset) % 2)); } public void updateOffset(int offset) {