Fix invalid cast when deodexing an execute inline instruction on an odex file from eclair or earlier

git-svn-id: https://smali.googlecode.com/svn/trunk@807 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
jesusfreke@jesusfreke.com
2011-01-02 18:39:15 +00:00
parent 9d5f9610bc
commit 817f2e0a76

View File

@ -80,7 +80,7 @@ abstract class InlineMethodResolver {
public DeodexUtil.InlineMethod resolveExecuteInline(AnalyzedInstruction analyzedInstruction) {
assert analyzedInstruction.instruction instanceof OdexedInvokeVirtual;
OdexedInvokeVirtual instruction = (OdexedInvokeVirtual)analyzedInstruction;
OdexedInvokeVirtual instruction = (OdexedInvokeVirtual)analyzedInstruction.instruction;
int methodIndex = instruction.getMethodIndex();
if (methodIndex < 0 || methodIndex >= inlineMethods.length) {