Fixed bug in the tree walker code for Format20t

git-svn-id: https://smali.googlecode.com/svn/trunk@17 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-04-26 19:47:17 +00:00
parent a0c2e9647e
commit e0f6ab76de

View File

@ -385,7 +385,7 @@ instruction returns[Instruction instruction]
throw new RuntimeException("The offset/label is out of range. The offset is " + Integer.toString(addressOffset) + " and the range for this opcode is [-32768, 32767].");
}
$instruction = Format20t.Format.make(dexFile, opcode.value, (byte)addressOffset);
$instruction = Format20t.Format.make(dexFile, opcode.value, (short)addressOffset);
}
| //e.g. sget_object v0 java/lang/System/out LJava/io/PrintStream;
^(I_STATEMENT_FORMAT21c_FIELD INSTRUCTION_FORMAT21c_FIELD REGISTER fully_qualified_field)