Skip to content

Commit 93a4a32

Browse files
authored
Merge pull request #9786 from jketema/lossy
C++: LossyFunctionResultCast updates
2 parents bbd7e62 + 0b471c2 commit 93a4a32

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

cpp/ql/src/Likely Bugs/Conversion/LossyFunctionResultCast.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ predicate whiteListWrapped(FunctionCall fc) {
4444

4545
from FunctionCall c, FloatingPointType t1, IntegralType t2
4646
where
47-
t1 = c.getTarget().getType().getUnderlyingType() and
47+
pragma[only_bind_into](t1) = c.getTarget().getType().getUnderlyingType() and
4848
t2 = c.getActualType() and
4949
c.hasImplicitConversion() and
5050
not whiteListWrapped(c)

0 commit comments

Comments
 (0)