https://pvs-studio.com/en/docs/warnings/v793/
V793. It is suspicious that the result of the statement is a part of the condition. Perhaps, this...
V793. The analyzer has detected a possible typo in a logical expression: an arithmetic operation acts as a condition.