@@ -1859,6 +1859,7 @@ inline bool operator == (const float& other, const Var& da)
18591859 // / Equality operator for comparing Var with float
18601860{
18611861 if (da.isEmpty ()) return false ;
1862+ // CodeQL [cpp/float-equality]: intentional exact comparison in dynamic type system
18621863 return other == da.convert <float >();
18631864}
18641865
@@ -1867,6 +1868,7 @@ inline bool operator != (const float& other, const Var& da)
18671868 // / Inequality operator for comparing Var with float
18681869{
18691870 if (da.isEmpty ()) return true ;
1871+ // CodeQL [cpp/float-equality]: intentional exact comparison in dynamic type system
18701872 return other != da.convert <float >();
18711873}
18721874
@@ -1963,6 +1965,7 @@ inline bool operator == (const double& other, const Var& da)
19631965 // / Equality operator for comparing Var with double
19641966{
19651967 if (da.isEmpty ()) return false ;
1968+ // CodeQL [cpp/float-equality]: intentional exact comparison in dynamic type system
19661969 return other == da.convert <double >();
19671970}
19681971
@@ -1971,6 +1974,7 @@ inline bool operator != (const double& other, const Var& da)
19711974 // / Inequality operator for comparing Var with double
19721975{
19731976 if (da.isEmpty ()) return true ;
1977+ // CodeQL [cpp/float-equality]: intentional exact comparison in dynamic type system
19741978 return other != da.convert <double >();
19751979}
19761980
0 commit comments