From 4433deb7dc3ebcc2eaa4f0d4c4e5a655131c728b Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Wed, 23 Dec 2009 05:27:42 +0000 Subject: [PATCH] Use an int to store the 'base' value, when decoding a special debug opcode, to prevent an incorrect negative value git-svn-id: https://smali.googlecode.com/svn/trunk@508 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- .../main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java b/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java index c401ce3d..1ed2fd41 100644 --- a/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java +++ b/dexlib/src/main/java/org/jf/dexlib/Debug/DebugInstructionIterator.java @@ -140,7 +140,7 @@ public class DebugInstructionIterator { } default: { - byte base = (byte)((debugOpcode & 0xFF) - 0x0A); + int base = ((debugOpcode & 0xFF) - 0x0A); processDebugInstruction.ProcessSpecialOpcode(startOffset, debugOpcode, (base % 15) - 4, base / 15); } }