Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
By 陈艺玲 committed on 5 Dec 2019
  • Loading branch information
geilige committed Mar 20, 2021
1 parent 3429e9b commit 61691c8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,15 @@ private static void reBuildE1Expression(E1Expr e1, MethodVisitor asm) {
case NEG:
asm.visitInsn(getOpcode(e1, INEG));
break;
case NOT: // fix issue#207 missing ~ bitwise complement operator
if (e1.getOp().valueType.equals("I")) {
asm.visitLdcInsn(-1);
asm.visitInsn(getOpcode(e1, IXOR));
} else if (e1.getOp().valueType.equals("J")) {
asm.visitLdcInsn(-1L);
asm.visitInsn(getOpcode(e1, IXOR));
}
break;
}
}

Expand Down

0 comments on commit 61691c8

Please sign in to comment.