bug fix with logical operators
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3035 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
4a474024ce
commit
06b647f8dd
|
@ -90,14 +90,14 @@ final public class BinaryOpInstruction extends Instruction {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* don't call this unless you really know what you're doing
|
||||
*/
|
||||
public Operator getOperator() {
|
||||
if (opcode < OP_iand) {
|
||||
// For these opcodes, there are 4 variants (i,l,f,d)
|
||||
return Operator.values()[(opcode - OP_iadd) / 4];
|
||||
} else {
|
||||
return Operator.values()[(opcode - OP_iand) / 2];
|
||||
// For these opcodes there are 2 variants (i,l)
|
||||
// Note that AND is values()[5]
|
||||
return Operator.values()[5 + (opcode - OP_iand) / 2];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue