You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse: language: Unsigned difference expression compared to zero
Squash CodeQL `cpp/unsigned-difference-expression-compared-zero`
issues.
This rule finds relational comparisons between the result of
an unsigned subtraction and the value `0`. Such comparisons
are likely to be wrong as the value of an unsigned subtraction
can never be negative. So the relational comparison ends up
checking whether the result of the subtraction is equal to 0.
This is probably not what the programmer intended.
0 commit comments