mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 12:20:11 +02:00
When writing an Instruction31t opcode, align the offset to the switch/array data
git-svn-id: https://smali.googlecode.com/svn/trunk@506 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
7570fe0382
commit
526d617e05
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user