r174986 - Removing a signed/unsigned mismatch warning triggered in MSVC 11.

Aaron Ballman aaron at aaronballman.com
Tue Feb 12 10:39:15 PST 2013


Author: aaronballman
Date: Tue Feb 12 12:39:15 2013
New Revision: 174986

URL: http://llvm.org/viewvc/llvm-project?rev=174986&view=rev
Log:
Removing a signed/unsigned mismatch warning triggered in MSVC 11.

Modified:
    cfe/trunk/lib/Format/TokenAnnotator.cpp

Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/TokenAnnotator.cpp?rev=174986&r1=174985&r2=174986&view=diff
==============================================================================
--- cfe/trunk/lib/Format/TokenAnnotator.cpp (original)
+++ cfe/trunk/lib/Format/TokenAnnotator.cpp Tue Feb 12 12:39:15 2013
@@ -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) < Precedence)) {
+           getPrecedence(*Current) < static_cast<prec::Level>(Precedence))) {
         if (OperatorFound) {
           ++Start->FakeLParens;
           if (Current != NULL)





More information about the cfe-commits mailing list