Author: rksimon Date: Sat Oct 7 05:24:10 2017 New Revision: 315149 URL: http://llvm.org/viewvc/llvm-project?rev=315149&view=rev Log: Fix signed/unsigned warning
Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.cpp?rev=315149&r1=315148&r2=315149&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original) +++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Sat Oct 7 05:24:10 2017 @@ -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<int>::max() && + assert(CurrentArg <= (unsigned)std::numeric_limits<int>::max() && "too many arguments"); SigHelp.activeParameter = static_cast<int>(CurrentArg); for (unsigned I = 0; I < NumCandidates; ++I) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits