Commit 76036ca7 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Avoid compile warning by putting parenthesis around && within ||

parent fa5f9246
......@@ -4412,8 +4412,8 @@ void Parser::parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minP
}
for (int tokenKindAhead = tok().kind(), precedenceAhead = precedence(tokenKindAhead, _templateArguments);
precedenceAhead > operPrecedence && isBinaryOperator(tokenKindAhead)
|| precedenceAhead == operPrecedence && isRightAssociative(tokenKindAhead);
(precedenceAhead > operPrecedence && isBinaryOperator(tokenKindAhead))
|| (precedenceAhead == operPrecedence && isRightAssociative(tokenKindAhead));
tokenKindAhead = tok().kind(), precedenceAhead = precedence(tokenKindAhead, _templateArguments)) {
parseExpressionWithOperatorPrecedence(rhs, precedenceAhead);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment