update {cs/cpp}/equality-on-floats to use the same alert-message/description

This commit is contained in:
erik-krogh
2022-08-11 15:43:46 +02:00
parent 55c8863e92
commit ea2777fa3e
2 changed files with 4 additions and 2 deletions

View File

@@ -21,4 +21,4 @@ where
FloatingPointType and
not ro.getAnOperand().isConstant() and // comparisons to constants generate too many false positives
not left.(VariableAccess).getTarget() = right.(VariableAccess).getTarget() // skip self comparison
select ro, "Equality test on floating point values may not behave as expected."
select ro, "Equality checks on floating point values can yield unexpected results."