forked from OSchip/llvm-project
Fixing the MSVC compiler warning a different way; removed use of static_cast and instead used a signed integer parameter.
llvm-svn: 174996
This commit is contained in:
parent
e348d2724a
commit
396088cdb5
|
@ -705,7 +705,7 @@ public:
|
||||||
ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {}
|
ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {}
|
||||||
|
|
||||||
/// \brief Parse expressions with the given operatore precedence.
|
/// \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)
|
if (Precedence > prec::PointerToMember || Current == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -729,7 +729,7 @@ public:
|
||||||
// found, insert fake parenthesis and return.
|
// found, insert fake parenthesis and return.
|
||||||
if (Current == NULL || Current->is(tok::semi) || closesScope(*Current) ||
|
if (Current == NULL || Current->is(tok::semi) || closesScope(*Current) ||
|
||||||
((Current->Type == TT_BinaryOperator || Current->is(tok::comma)) &&
|
((Current->Type == TT_BinaryOperator || Current->is(tok::comma)) &&
|
||||||
getPrecedence(*Current) < static_cast<prec::Level>(Precedence))) {
|
getPrecedence(*Current) < Precedence)) {
|
||||||
if (OperatorFound) {
|
if (OperatorFound) {
|
||||||
++Start->FakeLParens;
|
++Start->FakeLParens;
|
||||||
if (Current != NULL)
|
if (Current != NULL)
|
||||||
|
|
Loading…
Reference in New Issue