mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Merge pull request #729 from aschackmull/java/intmulttolong
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