Write the debug info offset, not index

git-svn-id: https://smali.googlecode.com/svn/trunk@399 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2009-08-21 06:14:33 +00:00
parent 4d68e05fb5
commit b133198ba8

View File

@ -244,7 +244,7 @@ public class CodeItem extends Item<CodeItem> {
if (debugInfo == null) {
out.writeInt(0);
} else {
out.writeInt(debugInfo.getIndex());
out.writeInt(debugInfo.getOffset());
}
out.writeInt(encodedInstructions.length / 2);
InstructionWriter.writeInstructions(encodedInstructions, referencedItems, out);