File tree Expand file tree Collapse file tree
cpp/ql/src/Likely Bugs/Arithmetic
csharp/ql/src/Likely Bugs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 FloatingPointType and
2222 not ro .getAnOperand ( ) .isConstant ( ) and // comparisons to constants generate too many false positives
2323 not left .( VariableAccess ) .getTarget ( ) = right .( VariableAccess ) .getTarget ( ) // skip self comparison
24- select ro , "Equality test on floating point values may not behave as expected ."
24+ select ro , "Equality checks on floating point values can yield unexpected results ."
Original file line number Diff line number Diff line change 11/**
22 * @name Equality check on floating point values
3- * @description Equality checks on floating point values can yield unexpected results.
3+ * @description Comparing results of floating-point computations with '==' or
4+ * '!=' is likely to yield surprising results since floating-point
5+ * computation does not follow the standard rules of algebra.
46 * @kind problem
57 * @problem.severity warning
68 * @precision medium
You can’t perform that action at this time.
0 commit comments