C++: shorten message in integer-multiplication-cast-to-long

This commit is contained in:
Nick Rolfe
2018-09-04 14:45:12 +01:00
parent 04e919df9d
commit f2d030a7e6
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, "Multiplication result may overflow '" + me.getType().toString() + "' before it is converted to '" + me.getFullyConverted().getType().toString() + "'. Consider casting before multiplication to avoid potential overflow."
select me, "Multiplication result may overflow '" + me.getType().toString() + "' before it is converted to '" + me.getFullyConverted().getType().toString() + "'."