git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@600 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent bd56505f03
commit 84a9056e68
  1. 6
      jode/jode/flow/CreatePrePostIncExpression.java

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.expr.*; import jode.expr.*;
import jode.Type; import jode.type.Type;
public class CreatePrePostIncExpression { public class CreatePrePostIncExpression {
@ -67,7 +67,7 @@ public class CreatePrePostIncExpression {
int op; int op;
if (iinc.getOperatorIndex() == iinc.ADD_OP + iinc.OPASSIGN_OP) if (iinc.getOperatorIndex() == iinc.ADD_OP + iinc.OPASSIGN_OP)
op = Operator.INC_OP; op = Operator.INC_OP;
else if (iinc.getOperatorIndex() == iinc.NEG_OP + iinc.OPASSIGN_OP) else if (iinc.getOperatorIndex() == iinc.SUB_OP + iinc.OPASSIGN_OP)
op = Operator.DEC_OP; op = Operator.DEC_OP;
else else
return false; return false;
@ -141,7 +141,7 @@ public class CreatePrePostIncExpression {
int op; int op;
if (binOp.getOperatorIndex() == store.ADD_OP) if (binOp.getOperatorIndex() == store.ADD_OP)
op = Operator.INC_OP; op = Operator.INC_OP;
else if (binOp.getOperatorIndex() == store.NEG_OP) else if (binOp.getOperatorIndex() == store.SUB_OP)
op = Operator.DEC_OP; op = Operator.DEC_OP;
else else
return false; return false;

Loading…
Cancel
Save