Cast expressions
Author: Semmle LGTM
import java
from CastExpr c
where
c.getExpr().getType() instanceof FloatingPointType and
c.getType() instanceof IntegralType
select c
Description
Finds casts from a floating point type to an integer type
import java
from CastExpr c
where
c.getExpr().getType() instanceof FloatingPointType and
c.getType() instanceof IntegralType
select c
Finds casts from a floating point type to an integer type