diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-05-27 18:35:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-05-27 18:35:05 +0000 |
commit | a2ace58cf99f9279a7467d987c6094145dd19d8b (patch) | |
tree | c7415e1d1eabe7942dbdeb71503e8f846312ec0a /tools/libclang/CIndexCodeCompletion.cpp | |
parent | 812a3456b63708a5972f712e9e4b54d3cc436378 (diff) |
Silence warning about "enumeral and non-enumeral type in conditional
expression".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexCodeCompletion.cpp')
-rw-r--r-- | tools/libclang/CIndexCodeCompletion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndexCodeCompletion.cpp b/tools/libclang/CIndexCodeCompletion.cpp index 481a375fb8..fa1fd91559 100644 --- a/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/libclang/CIndexCodeCompletion.cpp @@ -202,7 +202,7 @@ unsigned clang_getNumCompletionChunks(CXCompletionString completion_string) { 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, |