We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de751b0 commit a7c22dbCopy full SHA for a7c22db
cpp/ql/src/semmle/code/cpp/rangeanalysis/SimpleRangeAnalysis.qll
@@ -129,7 +129,12 @@ private class UnsignedBitwiseAndExpr extends BitwiseAndExpr {
129
getLeftOperand().getValue().toInt() >= 0
130
) and
131
(
132
- getRightOperand().getFullyConverted().getType().getUnderlyingType().(IntegralType).isUnsigned() or
+ getRightOperand()
133
+ .getFullyConverted()
134
+ .getType()
135
+ .getUnderlyingType()
136
+ .(IntegralType)
137
+ .isUnsigned() or
138
getRightOperand().getValue().toInt() >= 0
139
)
140
}
0 commit comments