We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390ebc9 commit 36e4b87Copy full SHA for 36e4b87
csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql
@@ -22,6 +22,4 @@ from EqualityOperation e
22
where
23
e.getAnOperand().getType() instanceof FloatingPointType and
24
not e.getAnOperand() instanceof NullLiteral
25
-//Uncomment this to exclude comparisons to 0 literals
26
-//or e.getAnOperand() instanceof ZeroFloatLiteral
27
select e, "Equality checks on floating point values can yield unexpected results."
0 commit comments