From a3aa724fb7d692c23c422daa2de3a490f327025b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 7 Oct 2017 12:24:10 +0000 Subject: [PATCH] Fix signed/unsigned warning llvm-svn: 315149 --- clang-tools-extra/clangd/ClangdUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/ClangdUnit.cpp b/clang-tools-extra/clangd/ClangdUnit.cpp index 4358a60b7cba..ccf0283a2942 100644 --- a/clang-tools-extra/clangd/ClangdUnit.cpp +++ b/clang-tools-extra/clangd/ClangdUnit.cpp @@ -616,7 +616,7 @@ public: // Right now the overloaded candidates seem to be provided in a "best fit" // order, so I'm not too worried about this. SigHelp.activeSignature = 0; - assert(CurrentArg <= std::numeric_limits::max() && + assert(CurrentArg <= (unsigned)std::numeric_limits::max() && "too many arguments"); SigHelp.activeParameter = static_cast(CurrentArg); for (unsigned I = 0; I < NumCandidates; ++I) {