From e0f6ab76de8a54688ff69a48e4435402f6ecf59a Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Sun, 26 Apr 2009 19:47:17 +0000 Subject: [PATCH] Fixed bug in the tree walker code for Format20t git-svn-id: https://smali.googlecode.com/svn/trunk@17 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- src/main/antlr3/org/JesusFreke/smali/smaliTreeWalker.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antlr3/org/JesusFreke/smali/smaliTreeWalker.g b/src/main/antlr3/org/JesusFreke/smali/smaliTreeWalker.g index d9a4d150..3cc6c37d 100644 --- a/src/main/antlr3/org/JesusFreke/smali/smaliTreeWalker.g +++ b/src/main/antlr3/org/JesusFreke/smali/smaliTreeWalker.g @@ -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)