Skip to content

Commit 5262824

Browse files
bdrodesMathiasVP
andauthored
Update cpp/ql/src/Microsoft/Likely Bugs/SizeOfMisuse/SizeOfConstIntMacro.ql
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
1 parent 91b12ae commit 5262824

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cpp/ql/src/Microsoft/Likely Bugs/SizeOfMisuse/SizeOfConstIntMacro.ql

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ predicate isTypeDangerousForSizeof(Expr e) {
2222
else type = e.getUnspecifiedType()
2323
)
2424
|
25-
(
26-
type instanceof IntegralOrEnumType and
27-
// ignore string literals
28-
not type instanceof WideCharType and
29-
not type instanceof CharType
30-
)
25+
type instanceof IntegralOrEnumType and
26+
// ignore string literals
27+
not type instanceof WideCharType and
28+
not type instanceof CharType
3129
)
3230
}
3331

0 commit comments

Comments
 (0)