Skip to content

Commit 51d04cb

Browse files
committed
C++: Correct test annotation.
1 parent c0b6531 commit 51d04cb

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/ComparisonWithWiderType

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/ComparisonWithWiderType/test3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ void test_issue_5850(unsigned char small, unsigned int large1) {
33
}
44

55
void test_widening(unsigned char small, char large) {
6-
for(; small < static_cast<unsigned int>(static_cast<short>(large) - 1); small++) { } // GOOD [FALSE POSITIVE]
6+
for(; small < static_cast<unsigned int>(static_cast<short>(large) - 1); small++) { } // GOOD
77
}

0 commit comments

Comments
 (0)