[cfe-commits] r104863 - /cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp

Bill Wendling isanbard at gmail.com
Thu May 27 11:35:05 PDT 2010


Author: void
Date: Thu May 27 13:35:05 2010
New Revision: 104863

URL: http://llvm.org/viewvc/llvm-project?rev=104863&view=rev
Log:
Silence warning about "enumeral and non-enumeral type in conditional
expression".

Modified:
    cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp

Modified: cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp?rev=104863&r1=104862&r2=104863&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp Thu May 27 13:35:05 2010
@@ -202,7 +202,7 @@
 unsigned clang_getCompletionPriority(CXCompletionString completion_string) {
   CXStoredCodeCompletionString *CCStr
     = (CXStoredCodeCompletionString *)completion_string;
-  return CCStr? CCStr->getPriority() : CCP_Unlikely;
+  return CCStr? CCStr->getPriority() : unsigned(CCP_Unlikely);
 }
   
 static bool ReadUnsigned(const char *&Memory, const char *MemoryEnd,





More information about the cfe-commits mailing list