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:
JesusFreke@JesusFreke.com 2009-06-04 04:11:09 +00:00
parent a7266ebdce
commit 5eb3d80d87

View File

@ -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;
}