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:
Aaron Ballman 2013-02-12 19:20:48 +00:00
parent e348d2724a
commit 396088cdb5
1 changed files with 2 additions and 2 deletions

View File

@ -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)