Use the correct type to hold enumeration values

llvm-svn: 175374
This commit is contained in:
Dmitri Gribenko 2013-02-16 20:03:26 +00:00
parent 6f37daccb8
commit 97499ed60e
1 changed files with 2 additions and 2 deletions

View File

@ -711,7 +711,7 @@ public:
ExpressionParser(AnnotatedLine &Line) : Current(&Line.First) {}
/// \brief Parse expressions with the given operatore precedence.
void parse(int Precedence = prec::Unknown) {
void parse(prec::Level Precedence = prec::Unknown) {
if (Precedence > prec::PointerToMember || Current == NULL)
return;
@ -729,7 +729,7 @@ public:
while (Current != NULL) {
// Consume operators with higher precedence.
parse(Precedence + 1);
parse(prec::Level(Precedence + 1));
// At the end of the line or when an operator with higher precedence is
// found, insert fake parenthesis and return.