Skip to content
Snippets Groups Projects
Commit 468e399c authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Fixing the MSVC compiler warning a different way; removed use of static_cast...

Fixing the MSVC compiler warning a different way; removed use of static_cast and instead used a signed integer parameter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174996 91177308-0d34-0410-b5e6-96231b3b80d8
parent 9c504e93
No related branches found
No related tags found
No related merge requests found
......@@ -705,7 +705,7 @@ public:
ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {}
/// \brief Parse expressions with the given operatore precedence.
void parse(unsigned Precedence = prec::Unknown) {
void parse(signed Precedence = prec::Unknown) {
if (Precedence > prec::PointerToMember || Current == NULL)
return;
......@@ -729,7 +729,7 @@ public:
// found, insert fake parenthesis and return.
if (Current == NULL || Current->is(tok::semi) || closesScope(*Current) ||
((Current->Type == TT_BinaryOperator || Current->is(tok::comma)) &&
getPrecedence(*Current) < static_cast<prec::Level>(Precedence))) {
getPrecedence(*Current) < Precedence)) {
if (OperatorFound) {
++Start->FakeLParens;
if (Current != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment