Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
76036ca7
Commit
76036ca7
authored
Feb 05, 2010
by
Thorbjørn Lindeijer
Browse files
Avoid compile warning by putting parenthesis around && within ||
parent
fa5f9246
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
76036ca7
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment