mirror of
https://github.com/revanced/smali.git
synced 2025-05-12 04:14:27 +02:00
Fix up how the padding is handled for the special opcodes
git-svn-id: https://smali.googlecode.com/svn/trunk@76 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
a7266ebdce
commit
5eb3d80d87
@ -491,9 +491,8 @@ public class CodeItem extends OffsettedItem<CodeItem> {
|
||||
//return the word size of the instruction list
|
||||
public int getInstructionWordCount() {
|
||||
int bytes = 0;
|
||||
//TODO: what about option padding before the special opcodes?
|
||||
for (Instruction instruction: instructionList) {
|
||||
bytes += instruction.getBytes().length;
|
||||
bytes += instruction.getSize(bytes);
|
||||
}
|
||||
return bytes/2;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user