Skip to content

Commit 47a6600

Browse files
Fix small integer macro size, bytes not bits.
1 parent 202fb66 commit 47a6600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/common/src/codingstandards/cpp/IntegerConstantMacro.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class IntegerConstantMacro extends Macro {
1515
signed = false and size = getName().regexpCapture("UINT(8|16|32|64)_C", 1).toInt()
1616
}
1717

18-
predicate isSmall() { size < any(IntType it | it.isSigned()).getSize() }
18+
predicate isSmall() { size < any(IntType it | it.isSigned()).getSize() * 8 }
1919

2020
int getSize() { result = size }
2121

0 commit comments

Comments
 (0)