implement bipush/sipush
[org.ibex.classgen.git] / src / org / ibex / classgen / JSSA.java
index d43008b..a3dd785 100644 (file)
@@ -625,8 +625,8 @@ public class JSSA extends MethodGen implements CGConst {
 
             case LDC: case LDC_W: case LDC2_W: push(new Constant(arg)); return null;
 
 
             case LDC: case LDC_W: case LDC2_W: push(new Constant(arg)); return null;
 
-            case BIPUSH:    push(new Constant(i1));  // FIXME return null;
-            case SIPUSH:    push(new Constant(i1));  // FIXME return null;
+            case BIPUSH:    push(new Constant((Integer)arg)); return null;
+            case SIPUSH:    push(new Constant((Integer)arg)); return null;
 
             case TABLESWITCH:    new Branch((MethodGen.Switch)arg);
             case LOOKUPSWITCH:   new Branch((MethodGen.Switch)arg);
 
             case TABLESWITCH:    new Branch((MethodGen.Switch)arg);
             case LOOKUPSWITCH:   new Branch((MethodGen.Switch)arg);