mirror of
https://github.com/revanced/smali.git
synced 2025-05-09 19:04:32 +02:00
use the offset for the CodeItem, not the index
git-svn-id: https://smali.googlecode.com/svn/trunk@393 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
5c0670b2da
commit
a7ea38929b
@ -427,11 +427,11 @@ public class ClassDataItem extends Item<ClassDataItem> {
|
|||||||
out.annotate("access_flags");
|
out.annotate("access_flags");
|
||||||
out.writeUnsignedLeb128(accessFlags);
|
out.writeUnsignedLeb128(accessFlags);
|
||||||
out.annotate("code_off");
|
out.annotate("code_off");
|
||||||
out.writeUnsignedLeb128(codeItem==null?0:codeItem.getIndex());
|
out.writeUnsignedLeb128(codeItem==null?0:codeItem.getOffset());
|
||||||
}else {
|
}else {
|
||||||
out.writeUnsignedLeb128(method.getIndex() - previousIndex);
|
out.writeUnsignedLeb128(method.getIndex() - previousIndex);
|
||||||
out.writeUnsignedLeb128(accessFlags);
|
out.writeUnsignedLeb128(accessFlags);
|
||||||
out.writeUnsignedLeb128(codeItem==null?0:codeItem.getIndex());
|
out.writeUnsignedLeb128(codeItem==null?0:codeItem.getOffset());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user