mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Restrict attention to integral types in IntMultToLong.
This commit is contained in:
@@ -47,6 +47,8 @@ where
|
||||
e.getType() = sourceType and
|
||||
c.getConversionTarget() = destType and
|
||||
destType.widerThan(sourceType) and
|
||||
// restrict attention to integral types
|
||||
destType instanceof IntegralType and
|
||||
// not a trivial conversion
|
||||
not c.isTrivial() and
|
||||
// not an explicit conversion, which is probably intended by a user
|
||||
|
||||
Reference in New Issue
Block a user