Skip to content

Commit feccaf7

Browse files
committed
ConstantExpressions: Correct NotExpr to ComplementExpr
1 parent cd8c960 commit feccaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/common/src/codingstandards/cpp/ConstantExpressions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class IntegerConstantExpr extends FinalExpr {
5656
or
5757
result = this.(UnaryPlusExpr).getOperand().getFullyConverted().getValue().toBigInt()
5858
or
59-
result = this.(NotExpr).getOperand().getFullyConverted().getValue().toBigInt().bitNot()
59+
result = this.(ComplementExpr).getOperand().getFullyConverted().getValue().toBigInt().bitNot()
6060
or
6161
exists(BinaryOperation op, QlBuiltins::BigInt left, QlBuiltins::BigInt right |
6262
op = this and

0 commit comments

Comments
 (0)