fix iinc bug
authorbrian <brian@brianweb.net>
Sun, 30 May 2004 21:28:00 +0000 (21:28 +0000)
committerbrian <brian@brianweb.net>
Sun, 30 May 2004 21:28:00 +0000 (21:28 +0000)
darcs-hash:20040530212800-24bed-8bf01c826b520ddeb75b9cba8feb905bcfdc140d.gz

src/org/ibex/classgen/MethodGen.java

index 0fc3074..0fc8606 100644 (file)
@@ -217,7 +217,6 @@ public class MethodGen implements CGConst {
     public static class TSI extends SI {
         public final int lo;
         public final int hi;
-        public int defaultTarget = -1;
         public TSI(int lo, int hi) {
             super(hi-lo+1);
             this.lo = lo;
@@ -397,6 +396,7 @@ public class MethodGen implements CGConst {
                     if(pair.i1 > 255 || pair.i2 < -128 || pair.i2 > 127) throw new ClassGen.Exn("overflow of iinc arg"); 
                     o.writeByte(pair.i1);
                     o.writeByte(pair.i2);
+                    break;
                 }
                 case TABLESWITCH:
                 case LOOKUPSWITCH: {