mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Fix Code Scanning warning
This commit is contained in:
@@ -258,7 +258,7 @@ predicate conversionCannotOverflow(SemNumericType fromType, SemNumericType toTyp
|
||||
fromType = toType
|
||||
or
|
||||
// Treat any cast to an FP type as safe. It can lose precision, but not overflow.
|
||||
toType instanceof SemFloatingPointType
|
||||
toType instanceof SemFloatingPointType and fromType = any(SemNumericType n)
|
||||
or
|
||||
exists(SemIntegerType fromInteger, SemIntegerType toInteger, int fromSize, int toSize |
|
||||
fromInteger = fromType and
|
||||
|
||||
Reference in New Issue
Block a user