Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bc4c2d

Browse files
committed
[CPP-434] Ctrl + Shift + F.
1 parent 2292518 commit 9bc4c2d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cpp/ql/src/Likely Bugs/Arithmetic/SignedOverflowCheck.ql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ import cpp
1515
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
1616

1717
private predicate isSignedWithoutUnsignedCast(Expr e) {
18-
e.getType().getUnspecifiedType().(IntegralType).isSigned() /*and
19-
not e.getExplicitlyConverted().getType().getUnspecifiedType().(IntegralType).isUnsigned()*/
20-
}
18+
e.getType().getUnspecifiedType().(IntegralType).isSigned()
19+
/*
20+
* and
21+
* not e.getExplicitlyConverted().getType().getUnspecifiedType().(IntegralType).isUnsigned()
22+
*/
23+
24+
}
2125

2226
from RelationalOperation ro, AddExpr add, VariableAccess va1, VariableAccess va2
2327
where

0 commit comments

Comments
 (0)