diff options
author | acolyer <acolyer> | 2005-08-12 15:58:50 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-12 15:58:50 +0000 |
commit | 086be61547cb398cd65b5257841cc9e0268d931c (patch) | |
tree | 9433a2ee44d927ca805b3b329d64f8f1fee14fe6 /bcel-builder | |
parent | 1234abf691b69a9e70737247516054e4701e712d (diff) | |
download | aspectj-086be61547cb398cd65b5257841cc9e0268d931c.tar.gz aspectj-086be61547cb398cd65b5257841cc9e0268d931c.zip |
for one little change, this sure was a hell of a lot of work to track down. Fixes bug pr106130 where methods using iinc instructions with > 255 local vars were failing to generate wide versions of iinc instruction correctly.
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/IINC.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/IINC.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/IINC.java index ea70fc53d..7440221e5 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/IINC.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/IINC.java @@ -59,7 +59,7 @@ import org.aspectj.apache.bcel.util.ByteSequence; /** * IINC - Increment local variable by constant * - * @version $Id: IINC.java,v 1.2 2004/11/19 16:45:19 aclement Exp $ + * @version $Id: IINC.java,v 1.3 2005/08/12 15:58:50 acolyer Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public class IINC extends LocalVariableInstruction { @@ -106,7 +106,7 @@ public class IINC extends LocalVariableInstruction { } private final void setWide() { - if(wide = ((n > org.aspectj.apache.bcel.Constants.MAX_SHORT) || + if(wide = ((n > org.aspectj.apache.bcel.Constants.MAX_BYTE) || (Math.abs(c) > Byte.MAX_VALUE))) length = 6; // wide byte included else |