mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
Merge pull request #9786 from jketema/lossy
C++: LossyFunctionResultCast updates
This commit is contained in:
@@ -44,7 +44,7 @@ predicate whiteListWrapped(FunctionCall fc) {
|
||||
|
||||
from FunctionCall c, FloatingPointType t1, IntegralType t2
|
||||
where
|
||||
t1 = c.getTarget().getType().getUnderlyingType() and
|
||||
pragma[only_bind_into](t1) = c.getTarget().getType().getUnderlyingType() and
|
||||
t2 = c.getActualType() and
|
||||
c.hasImplicitConversion() and
|
||||
not whiteListWrapped(c)
|
||||
|
||||
Reference in New Issue
Block a user