X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FClassFileCompiler.java;h=1f6ecd49052467afbf688dbfeea2bf30392a76f9;hp=f0b9153f7e0ee2edda35a0fe7338024cd7a990f7;hb=3dd4a2b74bbc1248f66482f06b14d7fffcf7ac47;hpb=95c62ecbe81cfc11432e0755f741264d64d46776 diff --git a/src/org/ibex/nestedvm/ClassFileCompiler.java b/src/org/ibex/nestedvm/ClassFileCompiler.java index f0b9153..1f6ecd4 100644 --- a/src/org/ibex/nestedvm/ClassFileCompiler.java +++ b/src/org/ibex/nestedvm/ClassFileCompiler.java @@ -1262,13 +1262,7 @@ public class ClassFileCompiler extends Compiler implements org.apache.bcel.Const b1 = a(InstructionFactory.createBranchInstruction(IFGT,null)); a(d ? InstructionConstants.DCONST_0 : InstructionConstants.FCONST_0); - if(d) { - a(InstructionConstants.DUP2_X2); - a(InstructionConstants.POP2); - } else { - a(InstructionConstants.POP); - } - a(InstructionConstants.DSUB); + a(d ? InstructionConstants.DSUB : InstructionConstants.FSUB); b1.setTarget(setDouble(d));