mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
CPP: Use dataflow to find wrapped rounding functions.
This commit is contained in:
@@ -7,4 +7,3 @@
|
||||
| test.cpp:101:10:101:12 | call to pow | Return value of type double is implicitly converted to int here. |
|
||||
| test.cpp:103:10:103:12 | call to pow | Return value of type double is implicitly converted to int here. |
|
||||
| test.cpp:105:10:105:12 | call to pow | Return value of type double is implicitly converted to int here. |
|
||||
| test.cpp:130:10:130:17 | call to myRound3 | Return value of type double is implicitly converted to int here. |
|
||||
|
||||
@@ -127,5 +127,5 @@ void test3()
|
||||
{
|
||||
int i = myRound1(1.5); // GOOD
|
||||
int j = myRound2(2.5); // GOOD
|
||||
int k = myRound3(3.5); // GOOD [FALSE POSITIVE]
|
||||
int k = myRound3(3.5); // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user