Fixed an issue with the logic that determines if the padding field should be written before the tries/handlers

git-svn-id: https://smali.googlecode.com/svn/trunk@389 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2009-08-11 04:48:34 +00:00
parent 89c6442752
commit 5240d96f41

View File

@ -237,7 +237,7 @@ public class CodeItem extends Item<CodeItem> {
InstructionWriter.writeInstructions(encodedInstructions, referencedItems, out);
if (tries != null && tries.length > 0) {
if ((tries.length % 2) == 1) {
if ((encodedInstructions.length % 4) != 0) {
out.writeShort(0);
}