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:
JesusFreke@JesusFreke.com 2009-12-23 05:27:30 +00:00
parent 7570fe0382
commit 526d617e05

View File

@ -62,8 +62,7 @@ public class Instruction31t extends Instruction implements OffsetInstruction, Si
protected void writeInstruction(AnnotatedOutput out, int currentCodeOffset) { protected void writeInstruction(AnnotatedOutput out, int currentCodeOffset) {
out.writeByte(opcode.value); out.writeByte(opcode.value);
out.writeByte(regA); out.writeByte(regA);
//TODO: get offset from offsetTarget out.writeInt(offset + (((currentCodeOffset/2) + offset) % 2));
out.writeInt(offset);
} }
public void updateOffset(int offset) { public void updateOffset(int offset) {