mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
338 B
Plaintext
17 lines
338 B
Plaintext
/**
|
|
* @id cs/examples/cast-expr
|
|
* @name Cast expressions
|
|
* @description Finds casts from a floating point type to an integer type.
|
|
* @tags cast
|
|
* integer
|
|
* float
|
|
* type
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from CastExpr c
|
|
where c.getExpr().getType() instanceof FloatingPointType
|
|
and c.getType() instanceof IntegralType
|
|
select c
|