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 bfb573c commit 6496bf8Copy full SHA for 6496bf8
cpp/ql/src/Likely Bugs/AmbiguouslySignedBitField.ql
@@ -26,6 +26,8 @@ where
26
// At least for C programs on Windows, BOOL is a common typedef for a type
27
// representing BoolType.
28
not bf.getType().hasName("BOOL") and
29
+ // GLib's gboolean is a typedef for a type representing BoolType.
30
+ not bf.getType().hasName("gboolean") and
31
// If this is true, then there cannot be unsigned sign extension or overflow.
32
not bf.getDeclaredNumBits() = bf.getType().getSize() * 8 and
33
not bf.isAnonymous() and
0 commit comments