Merge pull request #145 from nickrolfe/rewording

C++: clearer alert wording in integer-multiplication-cast-to-long
This commit is contained in:
Geoffrey White
2018-09-04 18:00:37 +01:00
committed by GitHub
2 changed files with 10 additions and 10 deletions

View File

@@ -103,4 +103,4 @@ where t1 = me.getType().getUnderlyingType() and
) and
e.(Literal).getType().getSize() = t2.getSize()
)
select me, "Cast to '" + me.getFullyConverted().getType().toString() + "' before multiplication to avoid potential overflow."
select me, "Multiplication result may overflow '" + me.getType().toString() + "' before it is converted to '" + me.getFullyConverted().getType().toString() + "'."