aboutsummaryrefslogtreecommitdiffstats
path: root/src/proguard/classfile/instruction/VariableInstruction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/proguard/classfile/instruction/VariableInstruction.java')
-rw-r--r--src/proguard/classfile/instruction/VariableInstruction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proguard/classfile/instruction/VariableInstruction.java b/src/proguard/classfile/instruction/VariableInstruction.java
index 309f802..6390e0a 100644
--- a/src/proguard/classfile/instruction/VariableInstruction.java
+++ b/src/proguard/classfile/instruction/VariableInstruction.java
@@ -2,7 +2,7 @@
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
- * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
+ * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -365,8 +365,8 @@ public class VariableInstruction extends Instruction
private int requiredConstantSize()
{
return opcode != InstructionConstants.OP_IINC ? 0 :
- constant << 24 >> 24 == constant ? 1 :
- constant << 16 >> 16 == constant ? 2 :
+ (byte)constant == constant ? 1 :
+ (short)constant == constant ? 2 :
4;
}
}