Skip to content

Commit 267c341

Browse files
committed
C++: exclude ZeroBounds in relative stage
1 parent b4b7507 commit 267c341

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysisImpl.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ private module ConstantBounds implements BoundSig<FloatDelta> {
3030

3131
private module RelativeBounds implements BoundSig<FloatDelta> {
3232
class SemBound instanceof SemanticBound::SemBound {
33+
SemBound() {
34+
not this instanceof SemanticBound::SemZeroBound
35+
}
36+
3337
string toString() { result = super.toString() }
3438

3539
Location getLocation() { result = super.getLocation() }

0 commit comments

Comments
 (0)