mirror of
https://github.com/revanced/smali.git
synced 2025-05-14 21:27:06 +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
|
//return the word size of the instruction list
|
||||||
public int getInstructionWordCount() {
|
public int getInstructionWordCount() {
|
||||||
int bytes = 0;
|
int bytes = 0;
|
||||||
//TODO: what about option padding before the special opcodes?
|
|
||||||
for (Instruction instruction: instructionList) {
|
for (Instruction instruction: instructionList) {
|
||||||
bytes += instruction.getBytes().length;
|
bytes += instruction.getSize(bytes);
|
||||||
}
|
}
|
||||||
return bytes/2;
|
return bytes/2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user