Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 47a6600

Browse filesBrowse files
Fix small integer macro size, bytes not bits.
1 parent 202fb66 commit 47a6600
Copy full SHA for 47a6600

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/IntegerConstantMacro.qll
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.